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

DEFAULT_MODEL not working for Azure #116

Open
progmancod opened this issue Jul 26, 2023 · 1 comment
Open

DEFAULT_MODEL not working for Azure #116

progmancod opened this issue Jul 26, 2023 · 1 comment

Comments

@progmancod
Copy link

The environment variable DEFAULT_MODEL doesn't work with OPENAI_API_TYPE=azure because Object.values(OpenAIModelID).includes(
process.env.DEFAULT_MODEL as OpenAIModelID,
) in home.tsx always returns false, falling back on fallbackModelID.

@makeneko
Copy link

I am using Azure OpenAI and the DEFAULT_MODEL environment variable is working.
When using Azure OpenAI, the default values cannot be used because the model names are different.
image
https://learn.microsoft.com/en-us/azure/ai-services/openai/concepts/models#gpt-4-models

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

2 participants