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:
@@ -186,7 +186,7 @@ def get_step_detail(session_id, step_num):
|
||||
|
||||
@bp.route('/agent-template', methods=['GET'])
|
||||
def get_agent_template():
|
||||
"""获取智能体任务文本模板"""
|
||||
"""获取大模型任务文本模板"""
|
||||
try:
|
||||
if os.path.exists(AGENT_TEMPLATE_FILE):
|
||||
with open(AGENT_TEMPLATE_FILE, 'r', encoding='utf-8') as f:
|
||||
@@ -207,7 +207,7 @@ def get_agent_template():
|
||||
|
||||
@bp.route('/agent-template', methods=['POST'])
|
||||
def save_agent_template():
|
||||
"""保存智能体任务文本模板"""
|
||||
"""保存大模型任务文本模板"""
|
||||
try:
|
||||
data = request.get_json()
|
||||
template = data.get('template', '')
|
||||
|
||||
Reference in New Issue
Block a user