mirror of
https://gitee.com/qqtt-ah/ecom-dmb.git
synced 2026-11-24 14:29:19 +08:00
feat: 支持 Completions/Responses 双协议,并在同选型下续链加速
This commit is contained in:
@@ -16,7 +16,7 @@ uvicorn api.main:app --reload --host 0.0.0.0 --port 8200
|
||||
健康检查:`GET http://localhost:8200/health`
|
||||
API 前缀:`/api/agent/...`(会话/聊天/记忆;与前端代理 `/api/agent` 对齐)
|
||||
|
||||
**模型 API 配置不在本服务**:浏览器走 Java `GET/PUT /api/company/agent-llm-settings`(凭证 + 多模型勾选;`POST .../probe-models` 拉目录);Agent 经 Redis `agent:llm:rt:{companyId}` 或内部接口拉**默认模型**明文注入。
|
||||
**模型 API 配置不在本服务**:浏览器走 Java `GET/PUT /api/company/agent-llm-providers`(凭证 + 协议 `apiStyle` + 多模型);Agent 经 Redis `agent:llm:rt:{companyId}:{providerId}:{model}` 或内部接口拉明文注入。按提供商 `api_style` 走 Chat Completions 或 Responses;Responses 同选型可续 `previous_response_id`(切换模型清链,失效则 Mongo rebuild,见 DESIGN §11)。
|
||||
|
||||
## 分环境配置
|
||||
|
||||
|
||||
Reference in New Issue
Block a user