Skip to content

Commit

Permalink
fixup! Explicit tool calls
Browse files Browse the repository at this point in the history
  • Loading branch information
psionic-k committed Feb 24, 2025
1 parent 2c75e01 commit c1c55a3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions gptel-openai.el
Original file line number Diff line number Diff line change
Expand Up @@ -350,9 +350,7 @@ Mutate state INFO with response metadata."
(let* ((tool-call (read (current-buffer)))
(id (gptel--openai-format-tool-id id))
(name (plist-get tool-call :name))
(arguments (json-serialize (plist-get tool-call :args)
:null-object nil
:false-object :json-false)))
(arguments (gptel--json-encode (plist-get tool-call :args))))
(push (list :role "tool"
:tool_call_id id
:content
Expand Down

0 comments on commit c1c55a3

Please sign in to comment.