mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-04-28 10:26:32 +02:00
feat: default timeout 120 -> 600
This commit is contained in:
parent
16e7617959
commit
aae2bfe1fa
1 changed files with 2 additions and 2 deletions
|
|
@ -259,11 +259,11 @@ class Editor(BaseModel):
|
|||
if not base_url:
|
||||
return None
|
||||
api_key = await get_env_default(key="api_key", app_name="OmniParse", default_value="")
|
||||
timeout = env_timeout or conf_timeout or 120
|
||||
timeout = env_timeout or conf_timeout or 600
|
||||
try:
|
||||
timeout = int(timeout)
|
||||
except ValueError:
|
||||
timeout = 120
|
||||
timeout = 600
|
||||
|
||||
try:
|
||||
if not await check_http_endpoint(url=base_url):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue