set content to empty string (#2026)
This commit is contained in:
@@ -1166,7 +1166,7 @@ async def v1_chat_completions(tokenizer_manager, raw_request: Request):
|
|||||||
is_first = False
|
is_first = False
|
||||||
choice_data = ChatCompletionResponseStreamChoice(
|
choice_data = ChatCompletionResponseStreamChoice(
|
||||||
index=index,
|
index=index,
|
||||||
delta=DeltaMessage(role="assistant"),
|
delta=DeltaMessage(role="assistant", content=""),
|
||||||
finish_reason=(
|
finish_reason=(
|
||||||
finish_reason["type"] if finish_reason else ""
|
finish_reason["type"] if finish_reason else ""
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user