Skip to content

Commit

Permalink
Fixed azure patch-params for streaming support
Browse files Browse the repository at this point in the history
  • Loading branch information
wkok committed Nov 2, 2024
1 parent 72d7351 commit 16dbb46
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/wkok/openai_clojure/azure.clj
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,11 @@
(bootstrap-openapi))))

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


(comment
Expand Down

0 comments on commit 16dbb46

Please sign in to comment.