🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming
fixbug: #1076
莘权 马89b263a2fb47
diff --git a/metagpt/provider/human_provider.py b/metagpt/provider/human_provider.pyindex f205ecd1f..824acd345 100644--- a/metagpt/provider/human_provider.py+++ b/metagpt/provider/human_provider.py@@ -6,7 +6,7 @@ Author: garylin2099from typing import Optionalfrom metagpt.configs.llm_config import LLMConfig-from metagpt.const import USE_CONFIG_TIMEOUT+from metagpt.const import LLM_API_TIMEOUT, USE_CONFIG_TIMEOUTfrom metagpt.logs import loggerfrom metagpt.provider.base_llm import BaseLLM@@ -49,3 +49,6 @@ class HumanProvider(BaseLLM):async def acompletion_text(self, messages: list[dict], stream=False, timeout=USE_CONFIG_TIMEOUT) -> str:"""dummy implementation of abstract method in base"""return ""++ def get_timeout(self, timeout: int) -> int:+ return timeout or LLM_API_TIMEOUT