How to implement AzureOpenAI instead of OpenAI? #115
-
|
OpenAI api key is not working in Hong Kong, AzureOpenAI does. How to implement AzureOpenAI instead of OpenAI? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
You can use LiteLLM, which supports Azure OpenAI. For that you'd configure and set environmental variables You can also provide these values as arguments to LiteLLM rather than env variables, more information in LiteLLM docs: https://docs.litellm.ai/docs/providers/azure |
Beta Was this translation helpful? Give feedback.
-
|
thanks |
Beta Was this translation helpful? Give feedback.
You can use LiteLLM, which supports Azure OpenAI. For that you'd configure
app.yamlwithand set environmental variables
AZURE_API_KEY,AZURE_API_BASEandAZURE_API_VERSION.You can also provide these values as arguments to LiteLLM rather than env variables, more information in LiteLLM docs: https://docs.litellm.ai/docs/providers/azure