本地部署:顶层 docker-compose/config,域名 agent.ai.foresh.com(nginx-proxy VIRTUAL_HOST + external my-app-network,仅内网 expose 8080,config 只读挂载);配置后缀统一 .yaml→.yml(文件与全部引用,含 Dockerfile/AGENT_CONFIG/config.js/smoke)。smoke 25/25 通过

This commit is contained in:
2026-08-31 08:42:16 +08:00
parent cef9f815f7
commit b816efc23f
12 changed files with 92 additions and 86 deletions
+39
View File
@@ -0,0 +1,39 @@
# 自用通用 Agent 系统配置示例
# 复制为 config.yml 后按需修改;容器内通过 AGENT_CONFIG 指定路径。
# 模型池:多个 ID 共用同一个上游 URL(cli-proxy-api 按 ID 路由到不同账号)。
# 同时活跃会话数上限 = 模型数量。
models:
- id: ds1
display_name: "AMD DeepSeek 1"
- id: ds2
display_name: "AMD DeepSeek 2"
- id: ds3
display_name: "AMD DeepSeek 3"
# OpenAI 兼容上游(cli-proxy-api),会请求 {upstream_url}/chat/completions
upstream_url: "https://your-cli-proxy-api.example.com/v1"
# 若上游需要鉴权(可选)
api_key: ""
workspace_root: "./data/tasks"
# db_path: "/data/.agent.db"
terminal:
default_timeout_ms: 30000
max_output_chars: 10000
agent:
temperature: 1.0
max_tool_iterations: 50
max_retries: 2
# 内置 basic auth(可选)。若已在前面放 nginx-proxy 做认证,此处留空即可。
# auth:
# user: admin
# password: "change-me"
# web_search 工具:直接调用内网 MCP 服务(JSON-RPC over HTTP,无状态,默认已内置)
web_search:
url: "https://web-search.ai.foresh.com/"
authorization: "Basic a2ljZXI6USF3MmUzcjQ="