forked from Archives/langchain
chat_models.openai: Set tenacity timeout to openai's recommendation (#2768)
[OpenAI's cookbook](https://github.com/openai/openai-cookbook/blob/main/examples/How_to_handle_rate_limits.ipynb) suggest a tenacity backoff between 1 and 60 seconds. Currently langchain's backoff is between 4 and 10 seconds, which causes frequent timeout errors on my end. This PR changes the timeout to the suggested values.fix_agent_callbacks
parent
705596b46a
commit
1cc7ea333c
Loading…
Reference in New Issue