Azure OpenAI API instead of OpenAI API #294
philippbla
started this conversation in
Show and tell
Replies: 1 comment 1 reply
-
Tbh, I really couldn't get this one working after trying to wrap my head around it for half a day. I switched to litellmproxy, and it has much better overall functionality (even a WebUI to do test calls of all sorts) and just worked instantly (with the same Azure parameters I tried to get the above mentioned going...). |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
If anyone is interested in using Azure OpenAI API instead of the OpenAI API, I've been successful by using this proxy: https://github.com/stulzq/azure-openai-proxy
Once your azure-openai-proxy is running, simply update the following environment variable:
OPENAI_BASE_URL: 'http://<your_azure_openai_proxy-container_name>:8080/v1'
and adjust the OPENAI_API_KEY with your Azure API key.
I hope this will be useful to someone.
Beta Was this translation helpful? Give feedback.
All reactions