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? |
Answered by
szymondudycz
Feb 17, 2025
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 |
0 replies
Answer selected by
2000calories
|
thanks |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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