set content to empty string (#2026)
This commit is contained in:
1 parent
c722d9bdc3
commit
fb9fb3518b
1 file changed
+1
-1
@@ -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 ""
|
||||
),
|
||||
|
||||
Reference in new issue
Block a user