fix: MCP插件TimeoutError修复 + 多项Bug修复和性能优化
- fix: MCP插件管理接口改为后台任务,修复TimeoutError - fix: MCP连接失败后上下文清理的cancel scope错误 - feat: MCP插件后台注册添加重试机制 - fix: 限制每章自动创建伏笔数量上限 - fix: 修复JSON非法转义字符清洗 - fix: SSE流式生成添加心跳保活 - fix: 职业生成改用POST请求避免URL长度限制 - perf: 使用torch CPU版本加速Docker构建 - fix: 自动修复JSON字符串值中的裸换行符 - feat: 集成json5容错解析器
This commit is contained in:
@@ -78,6 +78,7 @@ class CareerGenerateRequest(BaseModel):
|
||||
project_id: str = Field(..., description="项目ID")
|
||||
main_career_count: int = Field(5, description="主职业数量", ge=1, le=20)
|
||||
sub_career_count: int = Field(8, description="副职业数量", ge=0, le=30)
|
||||
user_requirements: str = Field("", description="用户额外要求")
|
||||
enable_mcp: bool = Field(False, description="是否启用MCP工具增强")
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user