You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I run the minimal example provided in the quickstart, I get an error:
fromlangchain.llmsimportOpenAIllm=OpenAI(temperature=0.9)
text="What would be a good company name a company that makes colorful socks?"print(llm(text))
Support for request_timeout was added to LangChain recently (#398), but the OpenAI docs don't mention that request parameter. By default LangChain passes 'request_timeout': None and removing it from the request fixes the problem.
The text was updated successfully, but these errors were encountered:
When I run the minimal example provided in the quickstart, I get an error:
Support for
request_timeout
was added to LangChain recently (#398), but the OpenAI docs don't mention that request parameter. By default LangChain passes'request_timeout': None
and removing it from the request fixes the problem.The text was updated successfully, but these errors were encountered: