Skip to content

Commit dcb8232

Browse files
Fix ChatCompletionMessageGenericParam to allow for None content (#5452)
1 parent 66c0ff9 commit dcb8232

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

python/sglang/srt/openai_api/protocol.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ class ChatCompletionMessageContentAudioPart(BaseModel):
252252

253253
class ChatCompletionMessageGenericParam(BaseModel):
254254
role: Literal["system", "assistant", "tool"]
255-
content: Union[str, List[ChatCompletionMessageContentTextPart]]
255+
content: Union[str, List[ChatCompletionMessageContentTextPart], None]
256256

257257

258258
class ChatCompletionMessageUserParam(BaseModel):

0 commit comments

Comments
 (0)