Update request timeout window to 20 seconds

This commit is contained in:
sabaimran 2023-07-03 22:28:18 -07:00
parent b1940519c3
commit 89354def9b

View file

@ -67,7 +67,7 @@ def chat_completion_with_backoff(messages, model_name, temperature, openai_api_k
model_name=model_name,
temperature=temperature,
openai_api_key=openai_api_key or os.getenv("OPENAI_API_KEY"),
request_timeout=10,
request_timeout=20,
max_retries=1,
)
return chat(messages).content