diff --git a/astrbot/core/provider/sources/anthropic_source.py b/astrbot/core/provider/sources/anthropic_source.py index f05d205c..bd0f06fb 100644 --- a/astrbot/core/provider/sources/anthropic_source.py +++ b/astrbot/core/provider/sources/anthropic_source.py @@ -290,7 +290,7 @@ class ProviderAnthropic(Provider): try: llm_response = await self._query(payloads, func_tool) except Exception as e: - logger.error(f"发生了错误。Provider 配置如下: {model_config}") + # logger.error(f"发生了错误。Provider 配置如下: {model_config}") raise e return llm_response diff --git a/astrbot/core/provider/sources/gemini_source.py b/astrbot/core/provider/sources/gemini_source.py index fec1fb80..3bc6c67c 100644 --- a/astrbot/core/provider/sources/gemini_source.py +++ b/astrbot/core/provider/sources/gemini_source.py @@ -111,9 +111,9 @@ class ProviderGoogleGenAI(Provider): f"检测到 Key 异常({e.message}),且已没有可用的 Key。 当前 Key: {self.chosen_api_key[:12]}...", ) raise Exception("达到了 Gemini 速率限制, 请稍后再试...") - logger.error( - f"发生了错误(gemini_source)。Provider 配置如下: {self.provider_config}", - ) + # logger.error( + # f"发生了错误(gemini_source)。Provider 配置如下: {self.provider_config}", + # ) raise e async def _prepare_query_config( diff --git a/astrbot/core/provider/sources/openai_source.py b/astrbot/core/provider/sources/openai_source.py index 3f1d283c..cce3f01c 100644 --- a/astrbot/core/provider/sources/openai_source.py +++ b/astrbot/core/provider/sources/openai_source.py @@ -433,7 +433,7 @@ class ProviderOpenAIOfficial(Provider): ) payloads.pop("tools", None) return False, chosen_key, available_api_keys, payloads, context_query, None - logger.error(f"发生了错误。Provider 配置如下: {self.provider_config}") + # logger.error(f"发生了错误。Provider 配置如下: {self.provider_config}") if "tool" in str(e).lower() and "support" in str(e).lower(): logger.error("疑似该模型不支持函数调用工具调用。请输入 /tool off_all")