Skip to content

Commit

Permalink
set content to empty string (#2026)
Browse files Browse the repository at this point in the history
  • Loading branch information
chottolabs authored Nov 14, 2024
1 parent c722d9b commit fb9fb35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/sglang/srt/openai_api/adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -1166,7 +1166,7 @@ async def generate_stream_resp():
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 ""
),
Expand Down

0 comments on commit fb9fb35

Please sign in to comment.