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.
This commit is contained in:
kunish 2026-03-12 17:10:01 +08:00
parent 826090e099
commit cdb64b0d33
No known key found for this signature in database
GPG Key ID: 0E8D114FC3F86F4C

View File

@ -189,6 +189,5 @@ var DefaultStopSequences = []string{
"<|user|>",
"<|endoftext|>",
"<|end_of_turn|>",
"[DONE]",
"\n\nHuman:",
}