From cd13e1dbfa1e44b2dbca7b9cf6377dc0aca75410 Mon Sep 17 00:00:00 2001 From: fuzhongyun <15339891972@163.com> Date: Mon, 22 Dec 2025 14:17:37 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=A2=9E=E5=8A=A0=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=E7=8E=AF=E5=A2=83=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/config_test.yaml | 13 ++++++++++++- internal/services/capability.go | 2 +- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/config/config_test.yaml b/config/config_test.yaml index ab91824..fe68122 100644 --- a/config/config_test.yaml +++ b/config/config_test.yaml @@ -3,7 +3,6 @@ server: port: 8090 host: "0.0.0.0" - ollama: base_url: "http://host.docker.internal:11434" model: "qwen3-coder:480b-cloud" @@ -90,6 +89,18 @@ tools: api_key: "7583905168607100978" api_secret: "pat_eEN0BdLNDughEtABjJJRYTW71olvDU0qUbfQUeaPc2NnYWO8HeyNoui5aR9z0sSZ" +# eino tool 配置 +eino_tools: + # 货易通商品上传 + hytProductUpload: + base_url: "https://gateway.dev.cdlsxd.cn/goods-admin/api/v1/goods/supplier/batch/add/complete" + add_url: "https://gateway.dev.cdlsxd.cn/sw//#/goods/goodsManage" + # 货易通供应商查询 + hytSupplierSearch: + base_url: "https://gateway.dev.cdlsxd.cn/goods-admin/api/v1/supplier/list" + # 货易通仓库查询 + hytWarehouseSearch: + base_url: "https://gateway.dev.cdlsxd.cn/goods-admin/api/v1/warehouse/list" default_prompt: diff --git a/internal/services/capability.go b/internal/services/capability.go index 5b3d152..c5dec87 100644 --- a/internal/services/capability.go +++ b/internal/services/capability.go @@ -141,7 +141,7 @@ func (s *CapabilityService) checkRequestHeader(c *fiber.Ctx) error { return errorcode.AuthNotFound } // token校验 - if token == "" || token != "A7f9KQ3mP2X8LZC4R5e" { + if token == "" || token != constants.CapabilityProductIngestToken { return errorcode.KeyNotFound }