Skip to content

fix(xai): update Grok CLI protocol version to 1.0.46 - #974

Closed
myluke wants to merge 1 commit into
EasyMetaAu:mainfrom
myluke:fix/xai-cli-version
Closed

myluke wants to merge 1 commit into
EasyMetaAu:mainfrom
myluke:fix/xai-cli-version

Conversation

@myluke

@myluke myluke commented Oct 4, 2026

Copy link
Copy Markdown
Contributor

Grok 订阅上游会以 HTTP 426 拒绝旧的客户端版本 0.2.101,Helm 对外表现为 502 all_providers_failed。将默认 x-grok-client-version 更新为官方稳定版 1.0.46,同步环境变量示例及回归测试。订阅地址、身份请求头和版本覆盖校验保持原有行为。

验证:

  • TDD:先确认旧实现无法通过新版协议断言,再更新实现。
  • 82 个定向测试通过:xai.test.ts、xai-protocol-parity.test.ts、server.oauth.test.ts。
  • core / gateway 类型检查、改动文件 Biome 检查、git diff --check 通过。
  • 本机 Docker 同账号、同模型 Grok 4.6:旧版本上游 426、网关 502;更新后 Responses / Chat Completions 的流式与非流式均为 200 / OK,流式终止正常。

真实验证基于现有本地定制镜像,仅替换已核对与当前源码一致的 xAI 模块;旧镜像的配置兼容处理仅保留在被忽略的本地文件。完整 CI 由本 PR 运行,远程生产尚未部署。

Update the default version and regression expectations after the subscription proxy rejected 0.2.101 with HTTP 426.

Co-Authored-By: Codex <noreply@openai.com>
@myluke myluke closed this Oct 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant