Skip to content

Commit d97aa72

Browse files
committed
Fix exceptions on openai responses models when creating tasks
1 parent f1e610c commit d97aa72

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
## Unreleased
44

5+
- Fix exceptions on openai responses models when creating tasks.
6+
57
## 0.123.2
68

79
- Wait for pending MCP tool list refresh before reading tools after tool execution, fixing race where dynamically loaded tools were not immediately available.

src/eca/llm_providers/openai.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@
188188
(on-message-received {:type :text
189189
:text (:delta data)})
190190
;; tools
191-
"response.function_call_arguments.delta" (let [call (get @tool-call-by-item-id* (:item_id data))]
191+
"response.function_call_arguments.delta" (when-let [call (get @tool-call-by-item-id* (:item_id data))]
192192
(on-prepare-tool-call {:id (:id call)
193193
:full-name (:full-name call)
194194
:arguments-text (:delta data)}))

0 commit comments

Comments
 (0)