OpenAI
OpenAI copied to clipboard
Support Azure openai
Getting error: The data couldn't be read because its missing
Is it possible to pass in a different host? Or organisation identifier? Not sure how it looks from the Azure side (looking at https://github.com/MacPaw/OpenAI/blob/main/Sources/OpenAI/OpenAI.swift)
Looks like there is a subtle difference in the api usage. https://github.com/stulzq/azure-openai-proxy This repo identifies it
We could definitely abstract the deployment name from the endpoint? So for OpenAI it would just be "/v1" OpenAI: ".../v1/chat/completions" Azure: ".../azuredeployment/chat/completions"
Is that enough or are there additional changes needed?
Is that enough or are there additional changes needed?
For Azure OpenAI services, we need API_KEY
and more, which are deployment_id
and endpoint
I've added support for Azure on my fork. Maybe it's useful for you
https://github.com/longseespace/OpenAI/commit/196e465e8a1c2eaece9a516cab60c90a7b4e7159
Why not add support for Azure? is it that hard? @longseespace did it.
Why not add support for Azure? is it that hard? @longseespace did it.
I second that.
It's sad that this library is dead and completely unmaintained 😥