[Bugfix] Set stop_sequence explicitly in streaming message_delta event (#55325)

Signed-off-by: Colin McNamara <colin@2cups.com>
This commit is contained in:
Colin McNamara
2026-09-10 18:21:21 -04:00
committed by GitHub
parent 9163190dda
commit 360f33f61c
2 changed files with 29 additions and 1 deletions
+3 -1
View File
@@ -842,7 +842,9 @@ class AnthropicServingMessages(OpenAIServingChat):
stop_delta = AnthropicDelta(
stop_reason=self.stop_reason_map.get(
finish_reason or "stop"
)
),
# Set explicitly so exclude_unset=True keeps it.
stop_sequence=None,
)
chunk = AnthropicStreamEvent(
type="message_delta",