🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming
fix provider failed ut
better6294bd80c5e7dbf
diff --git a/metagpt/provider/human_provider.py b/metagpt/provider/human_provider.pyindex 824acd345..87dbd105f 100644--- a/metagpt/provider/human_provider.py+++ b/metagpt/provider/human_provider.py@@ -17,7 +17,7 @@ class HumanProvider(BaseLLM):"""def __init__(self, config: LLMConfig):- pass+ self.config = configdef ask(self, msg: str, timeout=USE_CONFIG_TIMEOUT) -> str:logger.info("It's your turn, please type in your response. You may also refer to the context below")diff --git a/tests/metagpt/provider/test_base_llm.py b/tests/metagpt/provider/test_base_llm.pyindex bff8dbde4..40a9fda92 100644--- a/tests/metagpt/provider/test_base_llm.py+++ b/tests/metagpt/provider/test_base_llm.py@@ -11,6 +11,7 @@ import pytestfrom metagpt.configs.llm_config import LLMConfigfrom metagpt.provider.base_llm import BaseLLMfrom metagpt.schema import Message+from tests.metagpt.provider.mock_llm_config import mock_llm_configfrom tests.metagpt.provider.req_resp_const import (default_resp_cont,get_part_chat_completion,@@ -22,7 +23,7 @@ name = "GPT"class MockBaseLLM(BaseLLM):def __init__(self, config: LLMConfig = None):- pass+ self.config = config or mock_llm_configdef completion(self, messages: list[dict], timeout=3):return get_part_chat_completion(name)