Skip to content

provider: add SCX.ai - #1760

Open
bhuvan2134686 wants to merge 3 commits into
Portkey-AI:mainfrom
SouthernCrossAI:provider/scx-ai
Open

provider: add SCX.ai#1760
bhuvan2134686 wants to merge 3 commits into
Portkey-AI:mainfrom
SouthernCrossAI:provider/scx-ai

Conversation

@bhuvan2134686

@bhuvan2134686 bhuvan2134686 commented Aug 6, 2026

Copy link
Copy Markdown

Adds SCX.ai as a provider. SCX.ai is an Australian AI platform serving models over an OpenAI-compatible API at https://api.scx.ai/v1.

Companion pricing PR: Portkey-AI/models#874

Implementation

The API is OpenAI-compatible with bearer auth, so the provider reuses chatCompleteParams and responseTransformers from open-ai-base with no custom transforms:

  • src/providers/scx-ai/api.ts — base URL, auth header, /chat/completions endpoint. customHost is honoured for SCX's self-hosted container deployments.
  • src/providers/scx-ai/index.ts — params + response transforms
  • src/globals.tsSCX_AI constant, added to VALID_PROVIDERS
  • src/providers/index.ts — registered in the Providers map
  • src/data/{providers,models}.json — catalogue metadata

No custom stream transform is needed: SCX emits standard SSE with a trailing usage-only chunk and a \n\n delimiter, so the default split pattern in src/utils.ts applies unchanged (verified against the raw byte stream).

Excluded params

logprobs, top_logprobs, n and logit_bias — the params SCX documents as ignored and omits from each model's supported_sampling_parameters in /v1/models.

seed, presence_penalty and frequency_penalty are deliberately kept: SCX lists them as supported, and seed was verified to produce deterministic output (identical seeds returned byte-identical completions, different seeds diverged).

Verification

Ran the gateway locally (npm run dev:node) and routed live traffic through it, confirming:

  • non-streaming chat completion, returning provider: "scx-ai"
  • tool calling (tool_choice auto / none / required / named, and parallel_tool_calls)
  • streaming with [DONE] and a usage chunk

npm run format:check passes. npm run test:gateway is unchanged from main (8 suites fail to compile on a clean tree from pre-existing type errors in src/providers/bytez/api.ts and tests/unit/.../preRequestValidatorService.test.ts; 47 tests pass with and without this change).

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@punkpeye

punkpeye commented Aug 6, 2026

Copy link
Copy Markdown

@bhuvan2134686 take a moment to raise this PR against maintained fork https://github.com/glama-ai/lightport

Add scx-ai, an Australian AI platform serving models over an
OpenAI-compatible API at https://api.scx.ai/v1 with bearer auth.

The provider reuses chatCompleteParams and responseTransformers from
open-ai-base. Streaming emits standard SSE with a trailing usage-only
chunk and a \n\n delimiter, so neither a custom stream transform nor a
split-pattern entry in utils.ts is needed. customHost is honoured for
SCX's self-hosted container deployments.

Excluded params are the ones SCX documents as ignored and omits from
each model's supported_sampling_parameters in /v1/models: logprobs,
top_logprobs, n and logit_bias. seed, presence_penalty and
frequency_penalty are kept — SCX lists them as supported and seed was
verified to produce deterministic output.

Verified live against api.scx.ai through the local gateway: chat, tool
calls and streaming with usage.
Add the six models SCX now serves publicly alongside GLM-5.2 and
qwen3.8-max: GLM-5.2-Fast, MiniMax-M2.7, gpt-oss-120b, gemma-4-31B-it,
Qwen3-32B and Llama-4-Maverick-17B-128E-Instruct.

All six verified live against api.scx.ai (chat completion round-trip
per model, 2026-08-27).
@bhuvan2134686

bhuvan2134686 commented Aug 26, 2026

Copy link
Copy Markdown
Author

Updated: extended the catalogue entries in src/data/models.json with GLM-5.2-Fast, which SCX now serves publicly alongside GLM-5.2 and qwen3.8-max — verified with a live chat-completion round-trip through api.scx.ai. No provider-code changes — the open-ai-base reuse covers it. Companion pricing PR Portkey-AI/models#874 updated to match.

Drop the five secondary models — SCX is limiting this listing to its
three headline models. GLM-5.2-Fast stays, verified live with a
chat-completion round-trip through api.scx.ai.
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.

2 participants