feat: 增加内容生成配置管理
This commit is contained in:
@@ -127,6 +127,21 @@ class PromptSaveRequest(BaseModel):
|
||||
promptContent: str = Field(min_length=1)
|
||||
|
||||
|
||||
class ContentGenerationConfigSaveRequest(BaseModel):
|
||||
templateContent: str = Field(min_length=1, max_length=20000)
|
||||
instructionContent: str = Field(min_length=1, max_length=10000)
|
||||
|
||||
|
||||
class ContentGenerationPreviewRequest(BaseModel):
|
||||
configType: Literal["help_card", "share_draft"]
|
||||
templateContent: str = Field(min_length=1, max_length=20000)
|
||||
|
||||
|
||||
class ContentGenerationTestRequest(ContentGenerationPreviewRequest):
|
||||
instructionContent: str = Field(min_length=1, max_length=10000)
|
||||
sampleText: str = Field(min_length=1, max_length=20000)
|
||||
|
||||
|
||||
class AgentDebugHistoryMessage(BaseModel):
|
||||
role: Literal["user", "assistant"]
|
||||
content: str = Field(min_length=1, max_length=20000)
|
||||
|
||||
Reference in New Issue
Block a user