Skip to content

Commit a8ee6ea

Browse files
committed
fix(gateway): 补完 x-opencode-session 透传覆盖 Chat Completions 桥接路径,发布 1.2.64
- Chat Completions 的 Anthropic 桥接路径此前仍会丢弃 x-opencode-session 导致上游 400 - 补充 allowedHeaders 白名单遗漏项 - 无数据库迁移
1 parent 52f9193 commit a8ee6ea

3 files changed

Lines changed: 7 additions & 1 deletion

File tree

backend/cmd/server/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.2.63
1+
1.2.64

backend/internal/service/gateway_service.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -439,6 +439,7 @@ var allowedHeaders = map[string]bool{
439439
"accept-encoding": true,
440440
"x-claude-code-session-id": true,
441441
"x-client-request-id": true,
442+
"x-opencode-session": true,
442443
}
443444

444445
// GatewayCache 定义网关服务的缓存操作接口。

docs/site/content/docs/operations/changelog.mdx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ title: 更新日志
33
description: 按版本记录 Pixel API 的主要功能更新。
44
---
55

6+
## v1.2.64
7+
8+
- 补完 OpenCode Go 会话标识 `x-opencode-session` 的透传:Chat Completions 的 Anthropic 桥接路径此前仍会丢弃该请求头导致上游 400,现覆盖全部转发路径。
9+
- 数据库无新增迁移。
10+
611
## v1.2.63
712

813
- 收紧账号凭证导入、模型白名单与测试连接的模型目录校验,批量导入支持并行处理并保持账号隔离与失败可追踪。

0 commit comments

Comments
 (0)