Skip to content
This repository was archived by the owner on Jul 22, 2025. It is now read-only.

Commit 0c85a37

Browse files
committed
missing escape html for open ai
1 parent 47765b0 commit 0c85a37

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/completions/endpoints/open_ai.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ def add_to_function_buffer(function_buffer, partial: nil, payload: nil)
173173

174174
argument_fragments =
175175
json_args.reduce(+"") do |memo, (arg_name, value)|
176-
memo << "\n<#{arg_name}>#{value}</#{arg_name}>"
176+
memo << "\n<#{arg_name}>#{CGI.escapeHTML(value)}</#{arg_name}>"
177177
end
178178
argument_fragments << "\n"
179179

0 commit comments

Comments
 (0)