-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Adding support for OpenAI instance #361
Conversation
Updating main to base
Updating langchain to 0.0.187 (Azure-Samples#255)
Pull changes from origin
Adding cleanup instructions
Thanks for the PR @carlotta94c this looks like a really useful feature. I've added some nitpick comments in the review, but the most important one is the use of parameters to set the OpenAI type instead of editing bicep files. |
Hi @tonybaloney, huge thanks for your prompt review! I believe I've addressed the requested changes with my last commit. |
closing this outdated PR as I opened a new one #507 |
Purpose
This PR adds OpenAI API support for users who don't have access to Azure OpenAI. Additions:
Does this introduce a breaking change?
Pull Request Type
What kind of change does this Pull Request introduce?
How to Test
Test deployment and app running in the cloud:
To configure the local environment to use an existing OpenAI instance and test the app locally:
Run azd env set OPENAI_API_TYPE openai
Run azd env set OPENAI_API_ORGANIZATION {Your OpenAI organization}
Run azd env set OPENAI_API_KEY {Your OpenAI API key}
What to Check
Verify that the following are valid
Other Information
Completion is not supported by OpenAI 'gpt-3.5-turbo'. For non-azure OpenAI instance the /chat endpoint is used.