From 4cd72c5807e524450a02f0e32e749bec683e9962 Mon Sep 17 00:00:00 2001 From: fuzhongyun <15339891972@163.com> Date: Sat, 27 Dec 2025 10:30:04 +0800 Subject: [PATCH 1/3] =?UTF-8?q?feat:=20=E5=A2=9E=E5=8A=A0=E5=90=84?= =?UTF-8?q?=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/config.yaml | 56 ++++++++++++++++++++++++++++++++++++++++- config/config_env.yaml | 4 +-- config/config_test.yaml | 2 +- 3 files changed, 58 insertions(+), 4 deletions(-) diff --git a/config/config.yaml b/config/config.yaml index a1497f4..b2146c5 100644 --- a/config/config.yaml +++ b/config/config.yaml @@ -4,14 +4,24 @@ server: host: "0.0.0.0" ollama: - base_url: "http://127.0.0.1:11434" + base_url: "http://172.17.0.1:11434" model: "qwen3-coder:480b-cloud" generate_model: "qwen3-coder:480b-cloud" + mapping_model: "deepseek-v3.2:cloud" vl_model: "qwen2.5vl:3b" timeout: "120s" level: "info" format: "json" +vllm: + base_url: "http://172.17.0.1:8001/v1" + vl_model: "qwen2.5-vl-3b-awq" + timeout: "120s" + level: "info" + +coze: + base_url: "https://api.coze.cn" + api_secret: "sat_AqvFcdNgesP8megy1ItTscWFXRcsHRzmM4NJ1KNavfcdT0EPwYuCPkDqGhItpx13" sys: @@ -19,6 +29,7 @@ sys: channel_pool_len: 100 channel_pool_size: 32 llm_pool_len: 5 + heartbeat_interval: 30 redis: host: 47.97.27.195:6379 type: node @@ -64,6 +75,49 @@ tools: zltxOrderAfterSaleResellerBatch: enabled: true base_url: "https://revcl.1688sup.com/api/admin/afterSales/reseller_pre_ai" + weather: + enabled: true + base_url: "https://restapi.amap.com/v3/weather/weatherInfo" + api_key: "12afbde5ab78cb7e575ff76bd0bdef2b" + cozeExpress: + enabled: true + base_url: "https://api.coze.cn" + api_key: "7582477438102552616" + api_secret: "pat_eEN0BdLNDughEtABjJJRYTW71olvDU0qUbfQUeaPc2NnYWO8HeyNoui5aR9z0sSZ" + cozeCompany: + enabled: true + base_url: "https://api.coze.cn" + api_key: "7583905168607100978" + api_secret: "pat_eEN0BdLNDughEtABjJJRYTW71olvDU0qUbfQUeaPc2NnYWO8HeyNoui5aR9z0sSZ" + +# eino tool 配置 +eino_tools: + # 货易通商品上传 + hytProductUpload: + base_url: "https://hyt.86698.cn/admin_upload/api/v1/goods/supplier/batch/add/complete" + add_url: "https://hyt.86698.cn/#/goods/goodsManage" + # 货易通供应商查询 + hytSupplierSearch: + base_url: "https://hyt.86698.cn/admin_upload/api/v1/supplier/list" + # 货易通仓库查询 + hytWarehouseSearch: + base_url: "https://hyt.86698.cn/admin_upload/api/v1/warehouse/list" + # 货易通商品添加 + hytGoodsAdd: + base_url: "https://hyt.86698.cn/admin_upload/api/v1/goods/add" + add_url: "https://hyt.86698.cn/#/goods/goodsManage" + # 货易通商品图片添加 + hytGoodsMediaAdd: + base_url: "https://hyt.86698.cn/admin_upload/api/v1/media/add/batch" + # 货易通商品分类添加 + hytGoodsCategoryAdd: + base_url: "https://hyt.86698.cn/admin_upload/api/v1/good/category/relation/add" + # 货易通商品分类查询 + hytGoodsCategorySearch: + base_url: "https://hyt.86698.cn/admin_upload/api/v1/goods/category/list" + # 货易通商品品牌查询 + hytGoodsBrandSearch: + base_url: "https://hyt.86698.cn/admin_upload/api/v1/goods/brand/list" dingtalk: api_key: "dingsbbntrkeiyazcfdg" diff --git a/config/config_env.yaml b/config/config_env.yaml index e180a4b..21c1faa 100644 --- a/config/config_env.yaml +++ b/config/config_env.yaml @@ -15,13 +15,13 @@ ollama: vllm: base_url: "http://117.175.169.61:16001/v1" - vl_model: "Qwen2.5-VL-3B-Instruct-AWQ" + vl_model: "qwen2.5-vl-3b-awq" timeout: "120s" level: "info" coze: base_url: "https://api.coze.cn" - api_secret: "pat_guUSPk8KZFvIIbVReuaMlOBVAaIISSdkTEV8MaRgVPNv6UEYPHKTBUXznFcxl04H" + api_secret: "sat_AqvFcdNgesP8megy1ItTscWFXRcsHRzmM4NJ1KNavfcdT0EPwYuCPkDqGhItpx13" sys: diff --git a/config/config_test.yaml b/config/config_test.yaml index 2180e18..7ad9e71 100644 --- a/config/config_test.yaml +++ b/config/config_test.yaml @@ -15,7 +15,7 @@ ollama: vllm: base_url: "http://host.docker.internal:8001/v1" - vl_model: "Qwen2.5-VL-3B-Instruct-AWQ" + vl_model: "qwen2.5-vl-3b-awq" timeout: "120s" level: "info" From 4ca94214e3008c420036e8338e62e61d9661a910 Mon Sep 17 00:00:00 2001 From: fuzhongyun <15339891972@163.com> Date: Sat, 27 Dec 2025 10:36:44 +0800 Subject: [PATCH 2/3] =?UTF-8?q?fix:=20=E8=BF=98=E5=8E=9F=E6=9D=83=E9=99=90?= =?UTF-8?q?=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/biz/do/handle.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/biz/do/handle.go b/internal/biz/do/handle.go index ca2392c..0daedea 100644 --- a/internal/biz/do/handle.go +++ b/internal/biz/do/handle.go @@ -120,10 +120,10 @@ func (r *Handle) HandleMatch(ctx context.Context, client *gateway.Client, rec *e } // 校验用户权限 - // if err = r.PermissionAuth(client, pointTask); err != nil { - // log.Errorf("权限验证失败: %s", err.Error()) - // return - // } + if err = r.PermissionAuth(client, pointTask); err != nil { + log.Errorf("权限验证失败: %s", err.Error()) + return + } switch constants.TaskType(pointTask.Type) { case constants.TaskTypeApi: From fb934214fea43fed673e069e904f35f3b51e1beb Mon Sep 17 00:00:00 2001 From: fuzhongyun <15339891972@163.com> Date: Sat, 27 Dec 2025 11:04:15 +0800 Subject: [PATCH 3/3] =?UTF-8?q?fix:=20=E5=A4=84=E7=90=86=E5=A4=A7=E5=B0=8F?= =?UTF-8?q?=E5=86=99=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy.sh b/deploy.sh index 1707f5c..2e1e972 100644 --- a/deploy.sh +++ b/deploy.sh @@ -14,7 +14,7 @@ fi CONFIG_FILE="config/config.yaml" BRANCH="master" -BOT="ALL" +BOT="All" if [ "$MODE" = "dev" ]; then CONFIG_FILE="config/config_test.yaml" BOT="zltx"