mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-05-03 21:02:38 +02:00
fixbug: #1076
This commit is contained in:
parent
933a242370
commit
89b263a2fb
1 changed files with 4 additions and 1 deletions
|
|
@ -6,7 +6,7 @@ Author: garylin2099
|
|||
from typing import Optional
|
||||
|
||||
from metagpt.configs.llm_config import LLMConfig
|
||||
from metagpt.const import USE_CONFIG_TIMEOUT
|
||||
from metagpt.const import LLM_API_TIMEOUT, USE_CONFIG_TIMEOUT
|
||||
from metagpt.logs import logger
|
||||
from 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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue