diff --git a/main/xiaozhi-server/core/providers/llm/AliBL/AliBL.py b/main/xiaozhi-server/core/providers/llm/AliBL/AliBL.py index 16057d1d..012035ee 100644 --- a/main/xiaozhi-server/core/providers/llm/AliBL/AliBL.py +++ b/main/xiaozhi-server/core/providers/llm/AliBL/AliBL.py @@ -61,5 +61,6 @@ class LLMProvider(LLMProviderBase): yield "【LLM服务响应异常】" def response_with_functions(self, session_id, dialogue, functions=None): - logger.bind(tag=TAG).info(f"阿里百练暂未实现完整的工具调用(function call)") - return self.response(session_id, dialogue) + logger.bind(tag=TAG).error( + f"阿里百练暂未实现完整的工具调用(function call),建议使用其他意图识别" + ) diff --git a/main/xiaozhi-server/core/providers/llm/fastgpt/fastgpt.py b/main/xiaozhi-server/core/providers/llm/fastgpt/fastgpt.py index a35f41cc..b2e9d6b7 100644 --- a/main/xiaozhi-server/core/providers/llm/fastgpt/fastgpt.py +++ b/main/xiaozhi-server/core/providers/llm/fastgpt/fastgpt.py @@ -66,5 +66,6 @@ class LLMProvider(LLMProviderBase): yield "【服务响应异常】" def response_with_functions(self, session_id, dialogue, functions=None): - logger.bind(tag=TAG).info(f"fastgpt暂未实现完整的工具调用(function call)") - return self.response(session_id, dialogue) + logger.bind(tag=TAG).error( + f"fastgpt暂未实现完整的工具调用(function call),建议使用其他意图识别" + ) diff --git a/main/xiaozhi-server/core/providers/llm/homeassistant/homeassistant.py b/main/xiaozhi-server/core/providers/llm/homeassistant/homeassistant.py index 6e53695f..c436fc9e 100644 --- a/main/xiaozhi-server/core/providers/llm/homeassistant/homeassistant.py +++ b/main/xiaozhi-server/core/providers/llm/homeassistant/homeassistant.py @@ -66,7 +66,6 @@ class LLMProvider(LLMProviderBase): logger.bind(tag=TAG).error(f"生成响应时出错: {e}") def response_with_functions(self, session_id, dialogue, functions=None): - logger.bind(tag=TAG).info( - f"homeassistant不支持(function call),建议使用意图识别使用:nointent" + logger.bind(tag=TAG).error( + f"homeassistant不支持(function call),建议使用其他意图识别" ) - return self.response(session_id, dialogue)