Closed HanjoPurebuddha closed 3 months ago
I found where it is set in the code but I'm too new to know how to proceed :)
(azure.clj)
(defn patch-params [params]
{:api-version "2023-12-01-preview"
:deployment-id (:model params)
:martian.core/body (dissoc params :model)})
Could you try with the latest v0.19.0 of this library by any chance?
It's been set to use the latest stable release of Azure OpenAI - 2024-06-01 in the latest release of this library:
https://github.com/wkok/openai-clojure/blob/main/src%2Fwkok%2Fopenai_clojure%2Fazure.clj#L64
Yes works perfectly thank you, I'm sorry I missed this! Appreciate the help 🙏
Hi when I request the API I get the following response:
I compared the two strings and the only difference is the API version:
Used by the API: https://bali.openai.azure.com/openai/deployments/gpt-4-0613/chat/completions?api-version=2023-12-01-preview
Provided by azure: https://bali.openai.azure.com/openai/deployments/gpt-4-0613/chat/completions?api-version=2023-03-15-preview
What am I missing? Here's the code: