From cdb64b0d337b147ff7218eab6b069fe5ea19f83b Mon Sep 17 00:00:00 2001 From: kunish Date: Thu, 12 Mar 2026 17:10:01 +0800 Subject: [PATCH] fix: remove SSE termination marker from DefaultStopSequences The SSE stream termination marker string was incorrectly included in DefaultStopSequences, causing Gemini to prematurely stop generating output whenever the model produced text containing that marker. The SSE-level protocol filtering in stream_transformer.go already handles this marker correctly; it should not be a stop sequence for the model's text generation. --- backend/internal/pkg/antigravity/gemini_types.go | 1 - 1 file changed, 1 deletion(-) diff --git a/backend/internal/pkg/antigravity/gemini_types.go b/backend/internal/pkg/antigravity/gemini_types.go index 0ff24a1f..1a0ca5bb 100644 --- a/backend/internal/pkg/antigravity/gemini_types.go +++ b/backend/internal/pkg/antigravity/gemini_types.go @@ -189,6 +189,5 @@ var DefaultStopSequences = []string{ "<|user|>", "<|endoftext|>", "<|end_of_turn|>", - "[DONE]", "\n\nHuman:", }