Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Azure OpenAI #168

Closed
stevenbaert opened this issue Sep 7, 2023 · 2 comments
Closed

Azure OpenAI #168

stevenbaert opened this issue Sep 7, 2023 · 2 comments

Comments

@stevenbaert
Copy link

Can you make it compatible with Azure Open AI?
This should be helpfull: https://medium.com/@datatec.studio/guide-invoke-openai-api-with-python-azure-functions-1c128974c49

@pickettd
Copy link

pickettd commented Sep 7, 2023

Hi @stevenbaert - I just got this project working this morning with Azure OpenAI. I used the instructions from https://pypi.org/project/openai/ for Microsoft Azure endpoints along with the docs about the Langchain adapter here https://python.langchain.com/docs/guides/adapters/openai to get it to work.

When I was testing today, I had to provide the ChatCompletion.create function in llm_utils.py with a deployment_id parameter and open_api_key parameter and I configured Azure specific variables in config.py to get the adapter code in this repo to work with the Azure resources.

@ishaan-jaff
Copy link

@stevenbaert this PR should be useful too #119
LiteLLM simplifies using Azure LLMs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants