set content to empty string (#2026)

This commit is contained in:
chottolabs
2024-11-14 01:06:02 +00:00
committed by GitHub
parent c722d9bdc3
commit fb9fb3518b
+1 -1
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 ""
),