-
Notifications
You must be signed in to change notification settings - Fork 15.4k
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
openai[patch]: change in client_params
via config
updates the client
#23685
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Skipped Deployment
|
client_params
updates the client using configclient_params
via config
updates the client
@spike-spiegel-21 hey there! thank you for working on the patch. |
On further testing, this works for regular chain invoke but it seems that it does not work for agents. |
Noted @quadcube This PR was intended to solve the issue only for the |
@spike-spiegel-21 if it's helpful, I can open an issue with the code to reproduce the problem for the configurable agent. |
@quadcube Thank You! |
@baskaryan @efriis Please have a look. I came up with the best resolution after debugging |
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.
this is currently a breaking change for a few cases (including the ones that are failing tests, as well as anyone manually passing in client
or async_client
)
the case you want to fix is just adding configurability to the openai_api_key?
going to mark this as a draft while we sort out the best way to do this
closing as stale - let me know if you have thoughts above! |
Description: Changes in client parameters can be done using
ConfigurableFields
Issue: note: There might be more related issues.
fixes: #23381 (langchain-ai/langserve#693) (langchain-ai/langserve#652)
Twitter handle: @mynksol