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 setup with Langflow 0.4.0 #716

Closed
aidin-zadeh opened this issue Aug 4, 2023 · 2 comments
Closed

Azure OpenAI setup with Langflow 0.4.0 #716

aidin-zadeh opened this issue Aug 4, 2023 · 2 comments
Assignees
Labels
question Further information is requested stale

Comments

@aidin-zadeh
Copy link

Hey team, Incredible app. Could anyone please let me know if Langflow 0.4.0 supports the use of Azure OpenAI? I attempted to set the environment variables for Azure OPENAI_API_TYPE=azure, but unfortunately, it didn't work out.

If anyone has detailed instructions on how to make it work, I'd greatly appreciate it! Thanks a bunch in advance! 😄

@anovazzi1 anovazzi1 added the question Further information is requested label Aug 23, 2023
@yassineselmi
Copy link
Contributor

I use the v0.4.19, and I was able to make it work as follows:

I used the component ChatOpenAI, and added the following json to the `model_kwargs1 attribute:

{
    "engine": "<YOUR AZURE DEPLOYMENT NAME>",
    "api_version": "2023-05-15",
    "api_type": "azure"
}

In addition, I set the openai_api_base attribute as https://YOUR_AZURE_RESOURCE_NAME.openai.azure.com/.

Copy link

stale bot commented Nov 5, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Nov 5, 2023
@stale stale bot closed this as completed Nov 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested stale
Projects
None yet
Development

No branches or pull requests

4 participants