v2.0.0 大模型驱动版:移除智能体,直接调用大模型接口

- 核心改造:不再使用 openclaw 智能体执行处理步骤,改为直接调用大模型接口
- 新增 services/llm_client.py:OpenAI 兼容接口客户端,支持多模型配置管理
- 步骤4/5 由大模型直接完成(提取产品数据、填充字段)
- 步骤6 改为直接调用 ParamHub API 提交审核
- 新增 llm_configs 数据库表,默认配置 unsloth/Qwen3.6-27B-Q4_K_M (262144上下文)
- 新增 /api/llm 配置管理 API:增删改查、切换激活、测试连接
- 前端首页新增「大模型配置」面板,可随时新增/切换模型
- 处理步骤名称更新为「大模型」版
This commit is contained in:
2026-08-13 17:15:53 +08:00
parent 6abd3389f3
commit 23991c3552
12 changed files with 1187 additions and 151 deletions
+2
View File
@@ -30,12 +30,14 @@ from routes.products import bp as products_bp
from routes.system import bp as system_bp
from routes.tasks import bp as tasks_bp
from routes.process_monitor import bp as process_monitor_bp
from routes.llm import bp as llm_bp
app.register_blueprint(articles_bp)
app.register_blueprint(products_bp)
app.register_blueprint(system_bp)
app.register_blueprint(tasks_bp)
app.register_blueprint(process_monitor_bp)
app.register_blueprint(llm_bp)
# 首页
@app.route('/')