set content to empty string (#2026)

This commit is contained in:
chottolabs
2024-11-13 20:06:02 -05:00
committed by GitHub
parent c722d9bdc3
commit fb9fb3518b

View File

@@ -1166,7 +1166,7 @@ async def v1_chat_completions(tokenizer_manager, raw_request: Request):
is_first = False
choice_data = ChatCompletionResponseStreamChoice(
index=index,
delta=DeltaMessage(role="assistant"),
delta=DeltaMessage(role="assistant", content=""),
finish_reason=(
finish_reason["type"] if finish_reason else ""
),