From aae2bfe1fafc0df635ab648faa0d8949f93c6ccd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8E=98=E6=9D=83=20=E9=A9=AC?= Date: Tue, 27 Aug 2024 14:59:28 +0800 Subject: [PATCH] feat: default timeout 120 -> 600 --- metagpt/tools/libs/editor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/metagpt/tools/libs/editor.py b/metagpt/tools/libs/editor.py index e6f1525a4..478903d9c 100644 --- a/metagpt/tools/libs/editor.py +++ b/metagpt/tools/libs/editor.py @@ -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):