Unverified Commit dcb82325 authored by AmadeusW's avatar AmadeusW Committed by GitHub
Browse files

Fix ChatCompletionMessageGenericParam to allow for None content (#5452)

parent 66c0ff9e
......@@ -252,7 +252,7 @@ ChatCompletionMessageContentPart = Union[
class ChatCompletionMessageGenericParam(BaseModel):
role: Literal["system", "assistant", "tool"]
content: Union[str, List[ChatCompletionMessageContentTextPart]]
content: Union[str, List[ChatCompletionMessageContentTextPart], None]
class ChatCompletionMessageUserParam(BaseModel):
......
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