Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/providers/xai-transport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ export function isXaiResponsesDestination(provider: Pick<OcxProviderConfig, "bas
}

export const XAI_GROK_COMPATIBILITY = {
version: "1.0.25",
userAgent: "opencodex-grok/1.0.25",
version: "1.0.46",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Update the owned xAI transport contract

Changing this provider compatibility version alters the outbound xAI transport contract, but the commit leaves every mapped structure/ document untouched, including the header-parity section in structure/providers/xai-grok.md. Update the owned contract with the new 1.0.46 profile and its compatibility evidence so the architecture documentation remains synchronized with the runtime change.

AGENTS.md reference: AGENTS.md:L38-L46

Useful? React with 👍 / 👎.

userAgent: "opencodex-grok/1.0.46",
headers: {
clientIdentifier: "x-grok-client-identifier",
clientVersion: "x-grok-client-version",
Expand Down
8 changes: 4 additions & 4 deletions tests/providers/xai/xai-transport.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -533,16 +533,16 @@ async function capture(authMode: "oauth" | "key", calls = 1) {
}

describe("xAI outbound compatibility headers", () => {
test("OAuth snapshot pins Grok CLI compatibility to 1.0.25", async () => {
test("OAuth snapshot pins Grok CLI compatibility to 1.0.46", async () => {
const { effective, seen } = await capture("oauth");
expect(effective.baseUrl).toBe(XAI_GROK_CLI_BASE_URL);
expect(lower(seen[0])).toEqual({
authorization: "Bearer oauth-token",
"content-type": "application/json",
"user-agent": "opencodex-grok/1.0.25",
"user-agent": "opencodex-grok/1.0.46",
"x-authenticateresponse": "authenticate-response",
"x-grok-client-identifier": "opencodex",
"x-grok-client-version": "1.0.25",
"x-grok-client-version": "1.0.46",
"x-grok-conv-id": deriveXaiConvId("codex-session-abc"),
"x-grok-req-id": expect.stringMatching(UUID_V4),
"x-grok-session-id": deriveXaiConvId("codex-session-abc"),
Expand All @@ -557,7 +557,7 @@ describe("xAI outbound compatibility headers", () => {
expect(lower(seen[0])).toEqual({
authorization: "Bearer xai-api-key",
"content-type": "application/json",
"user-agent": "opencodex-grok/1.0.25",
"user-agent": "opencodex-grok/1.0.46",
"x-grok-conv-id": deriveXaiConvId("codex-session-abc"),
"x-grok-req-id": expect.stringMatching(UUID_V4),
"x-grok-session-id": deriveXaiConvId("codex-session-abc"),
Expand Down
Loading