update:1.优化章节管理(1->N)模式下支持修改章节标题 2.AI创作章节内容支持加载模型列表,使用不同模型创作
This commit is contained in:
@@ -78,6 +78,7 @@ class ChapterGenerateRequest(BaseModel):
|
||||
le=10000 # 最大10000字
|
||||
)
|
||||
enable_mcp: bool = Field(True, description="是否启用MCP工具增强(搜索参考资料)")
|
||||
model: Optional[str] = Field(None, description="指定使用的AI模型,不提供则使用用户默认模型")
|
||||
|
||||
|
||||
class BatchGenerateRequest(BaseModel):
|
||||
@@ -94,6 +95,7 @@ class BatchGenerateRequest(BaseModel):
|
||||
enable_analysis: bool = Field(False, description="是否启用同步分析")
|
||||
enable_mcp: bool = Field(True, description="是否启用MCP工具增强(搜索参考资料)")
|
||||
max_retries: int = Field(3, description="每个章节的最大重试次数", ge=0, le=5)
|
||||
model: Optional[str] = Field(None, description="指定使用的AI模型,不提供则使用用户默认模型")
|
||||
|
||||
|
||||
class BatchGenerateResponse(BaseModel):
|
||||
|
||||
Reference in New Issue
Block a user