|
|
@@ -5,7 +5,7 @@ from pydantic import BaseModel, Field
|
|
|
class QuestionRequest(BaseModel):
|
|
|
"""问题请求模型"""
|
|
|
question: str = Field(..., description="用户提出的问题", min_length=1, max_length=1000)
|
|
|
- need_store: int = Field(..., description="是否存储查询词", default=1)
|
|
|
+ need_store: int = Field(default=1, description="是否存储查询词")
|
|
|
|
|
|
|
|
|
class QueryResponse(BaseModel):
|