Skip to content
New issue

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

Support Azure openai #61

Open
iHTCboy opened this issue Apr 23, 2023 · 7 comments
Open

Support Azure openai #61

iHTCboy opened this issue Apr 23, 2023 · 7 comments

Comments

@iHTCboy
Copy link

iHTCboy commented Apr 23, 2023

Getting error: The data couldn't be read because its missing

@SunburstEnzo
Copy link
Contributor

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)

@VatsaPatel
Copy link

Looks like there is a subtle difference in the api usage.
https://github.com/stulzq/azure-openai-proxy This repo identifies it

@SunburstEnzo
Copy link
Contributor

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?

@ifsheldon
Copy link

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

@longseespace
Copy link
Contributor

I've added support for Azure on my fork. Maybe it's useful for you

longseespace@196e465

@iTarek
Copy link

iTarek commented Sep 18, 2023

Why not add support for Azure? is it that hard? @longseespace did it.

@winstonschen
Copy link

Why not add support for Azure? is it that hard? @longseespace did it.

I second that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants