Fix ChatCompletionMessageGenericParam to allow for None content (#5452)
This commit is contained in:
1 parent
66c0ff9e31
commit
dcb8232596
1 file changed
+1
-1
@@ -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):
|
||||
|
||||
Reference in new issue
Block a user