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
Ensure deployment_id is set to provided deployment, required for Azure OpenAI. #5002
Ensure deployment_id is set to provided deployment, required for Azure OpenAI. #5002
Conversation
should we just revert #4915? seems like the api update they were referring to was specific to completion endpoints, so we shouldn't have changed in first place |
Also valid, I’m out for most of the evening so won’t be able to update this
PR till after 10pm (ideally could keep the test?)
Revert also works though so if fix can’t wait revert seems easiest.
Cheers,
Lucas
…On Fri, May 19, 2023 at 14:51 Davis Chase ***@***.***> wrote:
should we just revert #4915
<#4915>? seems like the api
update they were referring to was specific to completion endpoints, so we
shouldn't have changed in first place
—
Reply to this email directly, view it on GitHub
<#5002 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAM5EOTTGUQXROMPIOEIATLXG7TPHANCNFSM6AAAAAAYIGYW4I>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
will revert for now and we can add tests in follow-up |
@dev2049 Updated this PR to only have unit test. |
|
||
try: | ||
query_result = embeddings.embed_query(text) | ||
except error.InvalidRequestError as e: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sorry what is this testing?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That deployment_id/engine is set on openai.Embeddings when the api_type is azure
. Basically a regression test against a similar change being made as the one that was reverted in response to this PR.
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
Ensure deployment_id is set to provided deployment, required for Azure OpenAI.
Fixes #5001
Before submitting
Verified in my own code and by running this example notebook, works after the fix (as in it doesn't fail before trying to talk to the endpoint): https://github.com/hwchase17/langchain/blob/22d844dc0795e7e53a4cc499bf4974cb83df490d/docs/modules/models/text_embedding/examples/azureopenai.ipynb
Who can review?
@agola11 @hwchase17