mirror of
https://github.com/khoj-ai/khoj.git
synced 2025-02-16 07:34:21 +00: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,
|
model_name=model_name,
|
||||||
temperature=temperature,
|
temperature=temperature,
|
||||||
openai_api_key=openai_api_key or os.getenv("OPENAI_API_KEY"),
|
openai_api_key=openai_api_key or os.getenv("OPENAI_API_KEY"),
|
||||||
request_timeout=10,
|
request_timeout=20,
|
||||||
max_retries=1,
|
max_retries=1,
|
||||||
)
|
)
|
||||||
return chat(messages).content
|
return chat(messages).content
|
||||||
|
|
Loading…
Add table
Reference in a new issue