[Bugfix] Set stop_sequence explicitly in streaming message_delta event (#55325)
Signed-off-by: Colin McNamara <colin@2cups.com>
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user