Integrate SCX.ai as a provider for GLM-5.2 and Qwen3.8 Max - #5773
Integrate SCX.ai as a provider for GLM-5.2 and Qwen3.8 Max#5773bhuvan2134686 wants to merge 3 commits into
Conversation
SCX.ai is an OpenAI-compatible inference provider running on renewable-powered infrastructure in Australia. Adds the provider plus two models the registry does not have yet: GLM-5.2 and Qwen3.8 Max. Verified live against api.scx.ai: model ids, the 131072 max_tokens ceiling, the error envelope, and OpenAI-shaped usage including prompt_tokens_details.cached_tokens. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
@bhuvan2134686 is attempting to deploy a commit to the Helicone Team on Vercel. A member of the Team first needs to authorize it. |
There was a problem hiding this comment.
Your trial has ended. Reactivate Greptile to resume code reviews.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
|
Went back through the other providers to make sure this entry follows the same conventions, and found one thing I had missed — pushed as ec7caa6.
While checking: Everything else lines up with existing providers:
|
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
|
Renamed the provider id from The rename covers the provider map, priorities, Re-ran after the rename: 285 gateway tests, 578 packages tests, snapshots regenerated, typecheck clean. |
Summary
Adds SCX.ai as an inference provider on the AI Gateway, along with the two models it serves that aren't in the registry yet: GLM-5.2 and Qwen3.8 Max. The registry currently tops out at GLM-4.7 and has no Qwen Max tier, so this makes the gateway the first place either model is routable.
SCX.ai runs OpenAI-compatible inference on renewable-powered infrastructure in Australia. We're the provider — happy to change anything you'd like about the entries.
Endpoints added (USD per 1M tokens)
glm-5.2:scx-aiGLM-5.2qwen3.8-max:scx-aiQwen3.8-MaxBoth are
ptbEnabled: true. Glad to coordinate on a managed key so credits routing works — let us know where to send it, and we can flip these tofalsein the meantime if you'd rather land the BYOK path first.Verified live against
api.scx.aiChecked before writing the entries, rather than transcribing a docs page:
GET /v1/models— canonical ids areGLM-5.2andQwen3.8-Maxmax_tokens: 200000withRange of max_tokens should be [1, 131072], hencemaxCompletionTokens: 131_072{"error":{"message":…}}, whichBaseProvider.buildErrorMessagealready parses — no override neededprompt_tokens_details.cached_tokens, soOpenAIUsageProcessoris correctOne thing to flag
I added
scx-aitoResponsesAPIEnabledProvidersunder the "chat completions only" group, since we're a plain OpenAI chat-completions endpoint andBaseProviderhandles the Responses → Chat Completions mapping. Happy to drop that one line if you'd rather gate it until you've exercised it yourselves.Component/Service
What part of Helicone does this affect?
Type of Change
Testing
Runs clean locally:
worker/test/ai-gateway/registry-zai.spec.ts— 41 passed (11 new SCX cases)worker/test/ai-gateway/registry-alibaba.spec.ts— 244 passed (7 new SCX cases)packagessuite — 578 passednpx jest --updateSnapshot __tests__/cost/registrySnapshots.test.tse2e/tests/nightly/gateway.test.ts— added thescx-aientry its meta-test requires (the live call there needs a Helicone-managed SCX key)Technical Considerations
Follows the structure of the Canopy Wave integration (#5292): provider class,
providers/index.ts,priorities.ts,provider-helpers.ts,providers/mappings.ts,getUsageProcessor.ts,web/data/providers.tsplus logo, author endpoints, and theworker/test/setup.tsmocks.