Relax summary field max_length from 140 to 300 characters

This commit is contained in:
wdm
2026-03-29 17:58:19 +08:00
parent ed0e3a9c7d
commit 8575033528
+1 -1
View File
@@ -11,7 +11,7 @@ Category = Literal["资讯", "方法论", "工具实践", "观点评论"]
class LlmSummaryResult(BaseModel):
title: str = Field(min_length=1)
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)
keywords: list[str] = Field(min_length=5, max_length=8)
topics: list[str] = Field(min_length=3, max_length=5)