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

community: add request_timeout and max_retries to BaseCohere #19346

Closed
wants to merge 2 commits into from

Conversation

kaijietti
Copy link
Contributor

This PR make request_timeout and max_retries configurable for Cohere.

@dosubot dosubot bot added size:S This PR changes 10-29 lines, ignoring generated files. 🔌: cohere Primarily related to Cohere integrations 🤖:improvement Medium size change to existing code to handle new use-cases labels Mar 20, 2024
Copy link

vercel bot commented Mar 20, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
langchain ⬜️ Ignored (Inspect) Visit Preview Mar 21, 2024 2:50am

Co-authored-by: Massimiliano Pronesti <massimiliano.pronesti@gmail.com>
@mspronesti
Copy link
Contributor

Thanks for accepting my suggestion :) Looks good to me!

@mspronesti
Copy link
Contributor

Opened #19641 to port this changes to the newer package langchain_cohere.

baskaryan added a commit that referenced this pull request Apr 1, 2024
As in #19346, this PR exposes `request_timeout` in `BaseCohere`, while
`max_retires` is no longer a parameter of the beneath client
(`cohere.Client`) and it is already configured in
`langchain_cohere.llms.Cohere`.

---------

Co-authored-by: Bagatur <baskaryan@gmail.com>
marlenezw pushed a commit to marlenezw/langchain that referenced this pull request Apr 2, 2024
)

As in langchain-ai#19346, this PR exposes `request_timeout` in `BaseCohere`, while
`max_retires` is no longer a parameter of the beneath client
(`cohere.Client`) and it is already configured in
`langchain_cohere.llms.Cohere`.

---------

Co-authored-by: Bagatur <baskaryan@gmail.com>
@kaijietti kaijietti closed this Apr 5, 2024
hinthornw pushed a commit that referenced this pull request Apr 26, 2024
As in #19346, this PR exposes `request_timeout` in `BaseCohere`, while
`max_retires` is no longer a parameter of the beneath client
(`cohere.Client`) and it is already configured in
`langchain_cohere.llms.Cohere`.

---------

Co-authored-by: Bagatur <baskaryan@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔌: cohere Primarily related to Cohere integrations 🤖:improvement Medium size change to existing code to handle new use-cases size:S This PR changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants