Relax summary field max_length from 140 to 300 characters
This commit is contained in:
@@ -11,7 +11,7 @@ Category = Literal["资讯", "方法论", "工具实践", "观点评论"]
|
|||||||
class LlmSummaryResult(BaseModel):
|
class LlmSummaryResult(BaseModel):
|
||||||
title: str = Field(min_length=1)
|
title: str = Field(min_length=1)
|
||||||
url: HttpUrl
|
url: HttpUrl
|
||||||
summary: str = Field(min_length=20, max_length=140)
|
summary: str = Field(min_length=20, max_length=300)
|
||||||
highlights: list[str] = Field(min_length=3, max_length=5)
|
highlights: list[str] = Field(min_length=3, max_length=5)
|
||||||
keywords: list[str] = Field(min_length=5, max_length=8)
|
keywords: list[str] = Field(min_length=5, max_length=8)
|
||||||
topics: list[str] = Field(min_length=3, max_length=5)
|
topics: list[str] = Field(min_length=3, max_length=5)
|
||||||
|
|||||||
Reference in New Issue
Block a user