We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
As stated in https://learn.microsoft.com/en-us/azure/ai-services/openai/api-version-deprecation, MS will deprecate certain versions of the OpenAI inference API.
I was able to "patch" this for my use with a little hack, but you might want to update to
https://github.com/Azure/azure-rest-api-specs/blob/main/specification/cognitiveservices/data-plane/AzureOpenAI/inference/preview/2023-12-01-preview/inference.json
The hack (for others to use, with the inference file in your resources folder as AzureOpenAI/2023-12-01-preview.json) is
AzureOpenAI/2023-12-01-preview.json
(ns azure.openai.patch) (in-ns 'wkok.openai-clojure.azure) (defn load-openai-spec [] (json/decode (slurp (io/resource "AzureOpenAI/2023-12-01-preview.json")) keyword)) (def m (delay (patch-handler (martian/bootstrap-openapi "/openai" (load-openai-spec) (update martian-http/default-opts :interceptors #(-> (remove (comp #{martian-http/perform-request}) %) (concat [add-authentication-header openai-interceptors/set-request-options override-api-endpoint sse/perform-sse-capable-request]))))))) (defn patch-params [params] {:api-version "2023-12-01-preview" :deployment-id (:model params) :martian.core/body (dissoc params :model)})
and then requiring azure.openai.patch at the right point in your code ;)
azure.openai.patch
The text was updated successfully, but these errors were encountered:
Thanks! Updated to latest spec in #56 if you'd like to confirm
Sorry, something went wrong.
Yes, can confirm it's working. Thanks a lot.
Successfully merging a pull request may close this issue.
As stated in https://learn.microsoft.com/en-us/azure/ai-services/openai/api-version-deprecation, MS will deprecate certain versions of the OpenAI inference API.
I was able to "patch" this for my use with a little hack, but you might want to update to
https://github.com/Azure/azure-rest-api-specs/blob/main/specification/cognitiveservices/data-plane/AzureOpenAI/inference/preview/2023-12-01-preview/inference.json
The hack (for others to use, with the inference file in your resources folder as
AzureOpenAI/2023-12-01-preview.json
) isand then requiring
azure.openai.patch
at the right point in your code ;)The text was updated successfully, but these errors were encountered: