Set a default empty string for user_bio to fix #5717 issue (#5722)

This commit is contained in:
Yiximail 2024-03-27 03:34:03 +08:00 committed by GitHub
parent 8c9aca239a
commit bdcf31035f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -107,7 +107,7 @@ class ChatCompletionRequestParams(BaseModel):
context: str | None = Field(default=None, description="Overwrites the value set by character field.") context: str | None = Field(default=None, description="Overwrites the value set by character field.")
greeting: str | None = Field(default=None, description="Overwrites the value set by character field.") greeting: str | None = Field(default=None, description="Overwrites the value set by character field.")
user_name: str | None = Field(default=None, description="Your name (the user). By default, it's \"You\".", alias="name1") user_name: str | None = Field(default=None, description="Your name (the user). By default, it's \"You\".", alias="name1")
user_bio: str | None = Field(default=None, description="The user description/personality.") user_bio: str | None = Field(default='', description="The user description/personality.")
chat_template_str: str | None = Field(default=None, description="Jinja2 template for chat.") chat_template_str: str | None = Field(default=None, description="Jinja2 template for chat.")
chat_instruct_command: str | None = None chat_instruct_command: str | None = None