Skip to content

Commit 0f73100

Browse files
committed
Fix regression: openai-chat tool call arguments error on some models
1 parent 6ad9077 commit 0f73100

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
## Unreleased
44
- Add missing models supported by Github Copilot
55

6+
- Fix regression: openai-chat tool call arguments error on some models.
7+
68
## 0.75.1
79

810
- Improve protocol for tool call output formatting for tools that output json.

src/eca/llm_providers/openai_chat.clj

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,6 @@
310310
:stream stream?
311311
:max_completion_tokens 32000}
312312
:temperature temperature
313-
:parallel_tool_calls (:parallel_tool_calls extra-payload)
314313
:tools (when (seq tools) (->tools tools)))
315314
extra-payload)
316315

@@ -344,7 +343,7 @@
344343
:api-key api-key
345344
:url-relative-path url-relative-path
346345
:on-error on-error
347-
:on-stream (when stream? (fn [event data] (handle-response event data tool-calls* (llm-util/gen-rid))))}))))
346+
:on-stream (when stream? (fn [event data] (handle-response event data tool-calls* new-rid)))}))))
348347
handle-response (fn handle-response [event data tool-calls* rid]
349348
(if (= event "stream-end")
350349
(do

0 commit comments

Comments
 (0)