We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents bd4b4de + 1a0a22f commit 6fe32aeCopy full SHA for 6fe32ae
src/eca/llm_providers/openai_chat.clj
@@ -217,7 +217,8 @@
217
(on-message-received {:type :text :text (:content delta)}))
218
219
;; Process reasoning if present (o1 models and compatible providers)
220
- (when-let [reasoning-text (:reasoning delta)]
+ (when-let [reasoning-text (or (:reasoning delta)
221
+ (:reasoning_content delta))]
222
(when on-reason
223
(when-not @reasoning-started*
224
;; Generate new reason-id for each thinking block
@@ -232,6 +233,7 @@
232
233
;; Check if reasoning just stopped (was active, now nil, and we have content)
234
(when (and @reasoning-started*
235
(nil? (:reasoning delta))
236
+ (nil? (:reasoning_content delta))
237
(:content delta)
238
on-reason)
239
(on-reason {:status :finished :id @current-reason-id*})
0 commit comments