mirror of
https://gitee.com/qqtt-ah/ecom-dmb.git
synced 2026-11-24 21:49:19 +08:00
fix: 探测 Responses/store 能力并在无状态时用 Completions 带全量历史
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-providers`(凭证 + 协议 `apiStyle` + 多模型);Agent 经 Redis `agent:llm:rt:{companyId}:{providerId}:{model}` 或内部接口拉明文注入。按提供商 `api_style` 走 Chat Completions 或 Responses;Responses 同选型可续 `previous_response_id`(切换模型清链,失效则 Mongo rebuild,见 DESIGN §11)。
|
||||
**模型 API 配置不在本服务**:浏览器走 Java 提供商 CRUD(含 `apiStyle`);Agent 拉 runtime 后**运行时探测** Responses/store,结果缓存 Redis `agent:llm:cap:*`,失败阶梯为 Responses+store → Responses → Completions(见 DESIGN §11)。
|
||||
|
||||
## 分环境配置
|
||||
|
||||
|
||||
Reference in New Issue
Block a user