smart-chatbot-ui icon indicating copy to clipboard operation
smart-chatbot-ui copied to clipboard

DEFAULT_MODEL not working for Azure

Open progmancod opened this issue 2 years ago • 1 comments

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.

progmancod avatar Jul 26 '23 17:07 progmancod

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

makeneko avatar Aug 29 '23 04:08 makeneko