allow message content to be empty

This commit is contained in:
josc146 2023-08-27 21:02:54 +08:00
parent fe0860dbf0
commit c8025f1cff

View File

@ -25,7 +25,7 @@ class Role(Enum):
class Message(BaseModel):
role: Role
content: str = Field(min_length=1)
content: str = Field(min_length=0)
class ChatCompletionBody(ModelConfigBody):