Skip to content

test: add an opt-in live xAI proxy test - #13

Merged
TheGreatAxios merged 1 commit into
cl-9410-xai-provider-pin-intx-peer-dependencies-to-040from
cl-9411-xai-provider-add-an-opt-in-live-xai-proxy-test
Sep 27, 2026
Merged

TheGreatAxios merged 1 commit into
cl-9410-xai-provider-pin-intx-peer-dependencies-to-040from
cl-9411-xai-provider-add-an-opt-in-live-xai-proxy-test

Conversation

@TheGreatAxios

@TheGreatAxios TheGreatAxios commented Sep 26, 2026 •

Copy link
Copy Markdown
Contributor

Closes CL-9411

Summary

  • Adds e2e/live.test.ts: one streamed text turn through runInference against xAI's CLI chat proxy (XAI_OAUTH_PROXY_BASE_URL), passing the user id decoded by xaiUserIdFromAccessToken as providerOptions.xaiUserId. A token without a JWT sub claim fails the test instead of silently dropping the header.
  • Skipped unless XAI_LIVE_ACCESS_TOKEN is set. XAI_LIVE_MODEL defaults to the first of XAI_DEFAULT_MODELS (grok-4.5).
  • Adds test:e2e (bun test e2e), sets test to bun test src, adds e2e to the tsconfig include, and removes bunfig.toml, whose [test] root = "src" kept bun test e2e from finding the suite.

Checks

  • bun run check: 2 pass. bun run test:e2e: 1 skip.
  • Not run against the real proxy (no token). With a placeholder token the suite reaches the proxy and gets Unauthorized, which confirms the wiring.

@TheGreatAxios
TheGreatAxios added this pull request to stack #17 September 26, 2026 04:22
@TheGreatAxios
TheGreatAxios force-pushed the cl-9411-xai-provider-add-an-opt-in-live-xai-proxy-test branch from 4b07a56 to 749b156 Compare September 26, 2026 04:26
@TheGreatAxios
TheGreatAxios merged commit b2ff73d into main Sep 27, 2026
1 check passed
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