From 249343a59211202011ef698ccd8c45891f432588 Mon Sep 17 00:00:00 2001 From: MrChen Date: Sun, 23 Mar 2025 18:58:40 +0800 Subject: [PATCH] make gemini working. fix the default response with function call. --- main/xiaozhi-server/core/providers/llm/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/xiaozhi-server/core/providers/llm/base.py b/main/xiaozhi-server/core/providers/llm/base.py index d39a8589c..3ba4f7e5c 100644 --- a/main/xiaozhi-server/core/providers/llm/base.py +++ b/main/xiaozhi-server/core/providers/llm/base.py @@ -35,4 +35,4 @@ class LLMProviderBase(ABC): """ # For providers that don't support functions, just return regular response for token in self.response(session_id, dialogue): - yield {"type": "content", "content": token} \ No newline at end of file + yield [token, None]