环境要求
- Node.js >= 18
- npm 或 yarn
安装依赖(清华源)
启动开发服务器
http://localhost:3000。
最小可用流程
- 进入首页,点击「新建绑定」。
- 选择
OpenAI (HTTP)或Custom (HTTP)。 - 填写
Target URL与Auth Key(如需)。 - 保存后进入沙箱进行验证。
- 调用 Bridge API 进行端到端联通。
Bridge API 示例
agentId 为绑定记录的 ID。
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
本地运行并完成一次最小可用调用。
npm config set registry https://registry.npmmirror.com
npm install
npm run dev
http://localhost:3000。
OpenAI (HTTP) 或 Custom (HTTP)。Target URL 与 Auth Key(如需)。POST /api/bridge/{agentId}
Authorization: Bearer <settings.json 中的 apiKey>
Content-Type: application/json
{
"message_id": "msg_123",
"agent_id": "agent_123",
"message": [
{ "role": "user", "type": "question", "text": "你好" }
]
}
agentId 为绑定记录的 ID。