Unverified Commit fb9fb351 authored by chottolabs's avatar chottolabs Committed by GitHub
Browse files

set content to empty string (#2026)

parent c722d9bd
......@@ -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 ""
),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment