Skip to content

provider: add Mixlayer - #1745

Open
sodiumsun wants to merge 1 commit into
Portkey-AI:mainfrom
sodiumsun:provider/add-mixlayer
Open

provider: add Mixlayer#1745
sodiumsun wants to merge 1 commit into
Portkey-AI:mainfrom
sodiumsun:provider/add-mixlayer

Conversation

@sodiumsun

Copy link
Copy Markdown

Description: (required)

  • Adds Mixlayer as a new LLM provider. Mixlayer is an OpenAI-compatible inference platform for open models (GLM, Qwen), with its serving stack built from scratch by core contributors to Candle (Hugging Face's Rust ML framework). API base: https://models.mixlayer.ai/v1.
  • New provider under src/providers/mixlayer/ (api.ts + index.ts), following the open-ai-base pattern used by Cerebras and other OpenAI-compatible providers.
  • Chat completions with streaming and tool calling; reasoning_effort is forwarded for thinking-capable models. Excludes the params Mixlayer doesn't support (n, logit_bias, logprobs, top_logprobs, user).
  • Registered in src/globals.ts and src/providers/index.ts. Auth is a standard Authorization: Bearer <MIXLAYER_API_KEY>.
  • Happy to maintain the integration going forward.

Tests Run/Test cases added: (required)

  • npm run build (rollup) passes.
  • Provider config mirrors the existing open-ai-base providers (e.g. Cerebras). No per-provider unit test is added, matching the precedent for simple OpenAI-compatible providers (e.g. provider: add Runware #1698, Runware).

Type of Change:

  • New feature (non-breaking change which adds functionality)

Mixlayer (https://mixlayer.com) is an OpenAI-compatible inference platform
for open models, with its serving stack built from scratch by core
contributors to Candle. API base: https://models.mixlayer.ai/v1.

Adds the provider under src/providers/mixlayer/ following the open-ai-base
pattern (like Cerebras), registered in globals.ts and providers/index.ts.
Chat completions with streaming and tool calling; reasoning_effort is
forwarded for thinking-capable models.
@sodiumsun
sodiumsun marked this pull request as ready for review July 22, 2026 19:01
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