forked from phoenix/litellm-mirror
perf(openai.py): extending request timeout
This commit is contained in:
parent
a575ff867f
commit
da68e1ea81
2 changed files with 96 additions and 96 deletions
|
@ -228,7 +228,7 @@ class OpenAIChatCompletion(BaseLLM):
|
|||
url=api_base,
|
||||
json=data,
|
||||
headers=headers,
|
||||
timeout=litellm.request_timeout
|
||||
timeout=600 # Set a 10-minute timeout for both connection and read
|
||||
)
|
||||
if response.status_code != 200:
|
||||
raise OpenAIError(status_code=response.status_code, message=response.text)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue