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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do we have any plan for Azure OpenAI? #887

Closed
baobo5625 opened this issue Apr 19, 2023 · 4 comments
Closed

Do we have any plan for Azure OpenAI? #887

baobo5625 opened this issue Apr 19, 2023 · 4 comments

Comments

@baobo5625
Copy link

No description provided.

@amoreaulemay
Copy link

So you can do that already. When you create a model, you can pass in a ConfigurationParams as a second argument on the constructor:

const model = new OpenAI({temperature: 0}, {basePath: '<your-azure-endpoint>'})

@bxav
Copy link

bxav commented Apr 20, 2023

Hi @amoreaulemay, did you make it work? Looks like langchainjs is using the openai package and the issue there is still not resolved openai/openai-node#53 .
Also, the header for azure are not the same for auth the request to there models (api-key for azure, Authorization/Bearer token for openai).

@amoreaulemay
Copy link

Sorry @bxav you're right. I based this off Helicone which acts as a proxy and assumed azure used the same request schema

@Taylorsuk
Copy link

This solution works well for me

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

5 participants