feat: 增加测试环境配置
This commit is contained in:
parent
c1b7cd6bf5
commit
cd13e1dbfa
|
|
@ -3,7 +3,6 @@ server:
|
||||||
port: 8090
|
port: 8090
|
||||||
host: "0.0.0.0"
|
host: "0.0.0.0"
|
||||||
|
|
||||||
|
|
||||||
ollama:
|
ollama:
|
||||||
base_url: "http://host.docker.internal:11434"
|
base_url: "http://host.docker.internal:11434"
|
||||||
model: "qwen3-coder:480b-cloud"
|
model: "qwen3-coder:480b-cloud"
|
||||||
|
|
@ -90,6 +89,18 @@ tools:
|
||||||
api_key: "7583905168607100978"
|
api_key: "7583905168607100978"
|
||||||
api_secret: "pat_eEN0BdLNDughEtABjJJRYTW71olvDU0qUbfQUeaPc2NnYWO8HeyNoui5aR9z0sSZ"
|
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:
|
default_prompt:
|
||||||
|
|
|
||||||
|
|
@ -141,7 +141,7 @@ func (s *CapabilityService) checkRequestHeader(c *fiber.Ctx) error {
|
||||||
return errorcode.AuthNotFound
|
return errorcode.AuthNotFound
|
||||||
}
|
}
|
||||||
// token校验
|
// token校验
|
||||||
if token == "" || token != "A7f9KQ3mP2X8LZC4R5e" {
|
if token == "" || token != constants.CapabilityProductIngestToken {
|
||||||
return errorcode.KeyNotFound
|
return errorcode.KeyNotFound
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue