-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
AzureOpenAI #114
Comments
in models.py: |
Updating models.py to the below. class ModelProvider(str, Enum): from langchain_openai import ChatOpenAI, AzureChatOpenAI #New entry
] elif model_provider == ModelProvider.AZURE_OPENAI:
.env: AZURE_OPENAI_API_KEY=your key
|
I just got it working and validated on my end. Azure OpenAi is now working. Will submit code change later. |
Hello Team,
Can we get Azure OpenAI added to LLM? All the API use by OpenAI is the same with Azure OpenAI. Azure is just cheaper to use and would be a good option to help the community with cost.
Example:
AZURE_OPENAI_KEY=Your Key
AZURE_OPENAI_ENDPOINT=https://yourinstancename-northcentralus.openai.azure.com/
northcentralus = Location (Location can be different depending on where the instance is deployed)
AZURE_OPENAI_DEPLOYMENT=gpt-35-turbo
gpt-35-turbo = Model can be different depending on user choices.
The text was updated successfully, but these errors were encountered: