Skip to content

Commit bbbb7fb

Browse files
authored
Merge pull request #73 from wkok/azure-sse-json-encoding-error
Fixes Azure SSE Streaming
2 parents 15ea93b + 16dbb46 commit bbbb7fb

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Diff for: src/wkok/openai_clojure/azure.clj

+5-3
Original file line numberDiff line numberDiff line change
@@ -132,9 +132,11 @@
132132
(bootstrap-openapi))))
133133

134134
(defn patch-params [params]
135-
{:api-version "2024-06-01"
136-
:deployment-id (:model params)
137-
:martian.core/body (dissoc params :model)})
135+
(merge
136+
{:api-version "2024-06-01"
137+
:deployment-id (:model params)
138+
:martian.core/body (dissoc params :model :on-next :wkok.openai-clojure.core/options)}
139+
(select-keys params [:stream :on-next])))
138140

139141

140142
(comment

0 commit comments

Comments
 (0)