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()}")