Files
AgentsMeeting/gateway/scripts/specs/api_proxy.json
T

30 lines
1.9 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{
"module": "api_proxy",
"version": "1.1",
"status": "deprecated",
"purpose": "API Proxy:8787)多 upstream API 反向代理,支持错误码吞掉、重试降级、fake 200 兜底。当前已停用:火山模型已停用,OpenCode 连接 bug 已修复。代码保留但不再运行(246/16 均无此进程监听 8787)。",
"ui_location": "已从 Infrastructure → Platform 中移除",
"human_help": {
"title": "API Proxy — ⛔ 已停用",
"description": [
"此服务已不再使用。原功能:",
"• 多 upstream API 反向代理(volcengine / opencode-go 等)",
"• 错误吞掉:upstream 失败重试 N 次后返回提示消息或 fake 200,避免调用方崩溃",
"• 代理 volcengine 原生模型名(如 deepseek-v4-flash)与 proxy 安全名(如 deepseek-v4-flash-go-safe",
"代码保留在 gateway/scripts/api_proxy.py 但已不运行。"
]
},
"ai_spec": {
"status": "deprecated",
"service_ports": [
{"port": 8787, "service": "api_proxy.py", "host": "0.0.0.0", "purpose": "多 upstream API 反向代理(已停用)"}
],
"apis": [
{"method": "GET", "path": "/*", "port": 8787, "returns": "upstream 响应或降级响应", "desc": "任意路径反向代理到配置的 upstream base_url + path"},
{"method": "POST", "path": "/*", "port": 8787, "returns": "upstream 响应或降级响应", "desc": "同上 — 支持 /v1/chat/completions 等 OpenAI 兼容端点"},
{"method": "DELETE", "path": "/*", "port": 8787, "returns": "upstream 响应或降级响应", "desc": "同上"}
],
"note": "不再使用,dashboard 中已移除监控。如需恢复:重新加入 PLATFORM_SERVICES 并启动 api_proxy.py。核心能力:多 upstream 路由(配置化 base_url 映射)、错误吞掉(MAX_RETRIES 重试)、fake 200 兜底(模型不可用时返回 mock 响应避免调用方崩溃)。"
}
}