langchain
c26ec778 - CohereEmbeddings: Add max_retries and request_timeout (#12275)

Commit
2 years ago
CohereEmbeddings: Add max_retries and request_timeout (#12275) Add max_retries and request_timeout to CohereEmbeddings, akin to how it works in OpenAIEmbeddings. Since the Cohere client already implements these parameters, we can simply pass them down. Uses parameters from these two cohere client objects: https://github.com/cohere-ai/cohere-python/blob/main/cohere/client.py https://github.com/cohere-ai/cohere-python/blob/main/cohere/client_async.py
Author
Parents
Loading