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.
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 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
2000calories
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.yaml
withand set environmental variables
AZURE_API_KEY
,AZURE_API_BASE
andAZURE_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