From 784732093e8bad07df6de0239e1ee667521925bf Mon Sep 17 00:00:00 2001 From: geekan Date: Thu, 11 Jan 2024 21:50:54 +0800 Subject: [PATCH] refine comments --- metagpt/provider/spark_api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/metagpt/provider/spark_api.py b/metagpt/provider/spark_api.py index 0a8169636..5e89c26d5 100644 --- a/metagpt/provider/spark_api.py +++ b/metagpt/provider/spark_api.py @@ -26,14 +26,14 @@ from metagpt.provider.llm_provider_registry import register_provider class SparkLLM(BaseLLM): def __init__(self, config: LLMConfig): self.config = config - logger.warning("当前方法无法支持异步运行。当你使用acompletion时,并不能并行访问。") + logger.warning("SparkLLM:当前方法无法支持异步运行。当你使用acompletion时,并不能并行访问。") def get_choice_text(self, rsp: dict) -> str: return rsp["payload"]["choices"]["text"][-1]["content"] async def acompletion_text(self, messages: list[dict], stream=False, timeout: int = 3) -> str: # 不支持 - logger.warning("当前方法无法支持异步运行。当你使用acompletion时,并不能并行访问。") + # logger.warning("当前方法无法支持异步运行。当你使用acompletion时,并不能并行访问。") w = GetMessageFromWeb(messages, self.config) return w.run()