From a5e43190f40e150c34432a9b1d7b8db99c0aba98 Mon Sep 17 00:00:00 2001 From: taylorxie Date: Tue, 10 Mar 2026 09:48:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=94=99=E8=AF=AF=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- maubot_llmplus/thrid_platform.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maubot_llmplus/thrid_platform.py b/maubot_llmplus/thrid_platform.py index 56aa337..f51589c 100644 --- a/maubot_llmplus/thrid_platform.py +++ b/maubot_llmplus/thrid_platform.py @@ -381,7 +381,7 @@ class Gemini(Platform): context = await maubot_llmplus.platforms.get_context(plugin, self, evt) request_body, headers = self._build_gemini_request(context) - endpoint = f"{self.url}/v1beta/models/{self.model}:streamGenerateContent" + endpoint = f"{self.url}/v1beta/models/{self.model}:streamGenerateContent?alt=sse" async with self.http.post(endpoint, headers=headers, data=json.dumps(request_body)) as response: if response.status != 200: raise ValueError(f"Error: {await response.text()}")