From 40118ec508dd2a0d818782c9f36acc936030194b Mon Sep 17 00:00:00 2001
From: zhaojunlong <5482498@qq.com>
Date: Tue, 10 Mar 2026 18:11:11 +0800
Subject: [PATCH] =?UTF-8?q?```=20feat(config):=20=E6=B7=BB=E5=8A=A0?=
=?UTF-8?q?=E4=BB=BB=E5=8A=A1=E9=85=8D=E7=BD=AE=E4=B8=AD=E7=9A=84=E6=A8=A1?=
=?UTF-8?q?=E5=9E=8B=E6=A8=A1=E5=BC=8F=E6=94=AF=E6=8C=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
- 在config.json中为任务添加mode和useBrowser字段
- 默认使用glm-5模型模式
feat(ui): 更新前端界面显示模型信息并添加模型选择功能
- 在任务表格中添加模型列显示
- 在新增/编辑任务表单中添加模型选择下拉框
- 支持多种模型选项包括qwen3.5-plus、qwen3-max等
- 更新表格列数以适应新增的模型列
feat(core): 实现任务模型模式的功能支持
- 在agentService.js中添加normalizeMode函数处理模型模式
- 修改createTask和runAgentTask函数支持mode参数
- 在scheduler.js中实现任务的模型模式配置
- 在server.js中添加模型模式的标准化和API支持
- 为任务运行时添加模型模式的日志输出
```
---
config.json | 4 +++-
public/index.html | 29 +++++++++++++++++++++++++++--
src/agentService.js | 14 ++++++++++++--
src/scheduler.js | 9 +++++++++
src/server.js | 16 +++++++++++++++-
5 files changed, 66 insertions(+), 6 deletions(-)
diff --git a/config.json b/config.json
index 731d494..a569af6 100644
--- a/config.json
+++ b/config.json
@@ -10,7 +10,9 @@
"id": "task-1710000000001",
"city": "南京市",
"prompt": "使用scrapling技能的fetch来爬取https://njggzy.nanjing.gov.cn/njweb/gchw/goods.html里房建市政、工程货物、交通水务、政府采购、产权交易、土地矿产、铁路航运和农村产权8个板块的招标公告列表的当天的的招标公告,获取项目名称 和项目金额(可能为合同预估价/最高投标限价等等),如果当天没有公告,默认获取最新的1条数据,不要试图写代码去正则匹配金额,因为金额的表述很多样,优先获取到详情md文件(或者html)后,使用`takeMoney`工具进行获取提取金额。\n输出结果为json,json结构如下\n```\n{\n \"results\": [\n\n {\n \"type\": \"比如房建市政\",\n\t\t\"project_name\": \"\",\n\t\t\"amount_yuan\": 0,\n\t\t\"date\": \"yyyy-MM-dd\",\n\t\t\"target_link: \"http...\"\n\t }\n ]\n}\n```",
- "enabled": true
+ "enabled": true,
+ "mode": "glm-5",
+ "useBrowser": false
}
],
"scheduler": {
diff --git a/public/index.html b/public/index.html
index 3c00456..4a65a2c 100644
--- a/public/index.html
+++ b/public/index.html
@@ -397,13 +397,14 @@
| 城市 |
提示词 |
+ 模型 |
状态 |
浏览器 |
操作 |
- | 加载中... |
+ | 加载中... |
@@ -529,6 +530,19 @@
+
+
+
+