update:让alibl、等非原生llm使用function时不卡顿

This commit is contained in:
hrz
2025-04-23 21:29:42 +08:00
parent fa81f4a150
commit 951370eee7
4 changed files with 73 additions and 31 deletions
@@ -134,3 +134,7 @@ class LLMProvider(LLMProviderBase):
yield f"JSON解码错误:{e}"
except Exception as e:
yield f"发生错误:{e}"
def response_with_functions(self, session_id, dialogue, functions=None):
logger.bind(tag=TAG).info(f"gemini暂未实现完整的工具调用(function call")
return self.response(session_id, dialogue)