mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-07-29 00:23:51 +08:00
update:优化非LLM使用functioncall意图识别的提示
This commit is contained in:
@@ -61,5 +61,6 @@ class LLMProvider(LLMProviderBase):
|
|||||||
yield "【LLM服务响应异常】"
|
yield "【LLM服务响应异常】"
|
||||||
|
|
||||||
def response_with_functions(self, session_id, dialogue, functions=None):
|
def response_with_functions(self, session_id, dialogue, functions=None):
|
||||||
logger.bind(tag=TAG).info(f"阿里百练暂未实现完整的工具调用(function call)")
|
logger.bind(tag=TAG).error(
|
||||||
return self.response(session_id, dialogue)
|
f"阿里百练暂未实现完整的工具调用(function call),建议使用其他意图识别"
|
||||||
|
)
|
||||||
|
|||||||
@@ -66,5 +66,6 @@ class LLMProvider(LLMProviderBase):
|
|||||||
yield "【服务响应异常】"
|
yield "【服务响应异常】"
|
||||||
|
|
||||||
def response_with_functions(self, session_id, dialogue, functions=None):
|
def response_with_functions(self, session_id, dialogue, functions=None):
|
||||||
logger.bind(tag=TAG).info(f"fastgpt暂未实现完整的工具调用(function call)")
|
logger.bind(tag=TAG).error(
|
||||||
return self.response(session_id, dialogue)
|
f"fastgpt暂未实现完整的工具调用(function call),建议使用其他意图识别"
|
||||||
|
)
|
||||||
|
|||||||
@@ -66,7 +66,6 @@ class LLMProvider(LLMProviderBase):
|
|||||||
logger.bind(tag=TAG).error(f"生成响应时出错: {e}")
|
logger.bind(tag=TAG).error(f"生成响应时出错: {e}")
|
||||||
|
|
||||||
def response_with_functions(self, session_id, dialogue, functions=None):
|
def response_with_functions(self, session_id, dialogue, functions=None):
|
||||||
logger.bind(tag=TAG).info(
|
logger.bind(tag=TAG).error(
|
||||||
f"homeassistant不支持(function call),建议使用意图识别使用:nointent"
|
f"homeassistant不支持(function call),建议使用其他意图识别"
|
||||||
)
|
)
|
||||||
return self.response(session_id, dialogue)
|
|
||||||
|
|||||||
Reference in New Issue
Block a user