mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-11-23 23:48:56 +01:00
Update request timeout window to 20 seconds
This commit is contained in:
parent
b1940519c3
commit
89354def9b
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue