provider: add Mixlayer - #1745
Open
sodiumsun wants to merge 1 commit into
Open
Conversation
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
marked this pull request as ready for review
July 22, 2026 19:01
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description: (required)
https://models.mixlayer.ai/v1.src/providers/mixlayer/(api.ts+index.ts), following theopen-ai-basepattern used by Cerebras and other OpenAI-compatible providers.reasoning_effortis forwarded for thinking-capable models. Excludes the params Mixlayer doesn't support (n,logit_bias,logprobs,top_logprobs,user).src/globals.tsandsrc/providers/index.ts. Auth is a standardAuthorization: Bearer <MIXLAYER_API_KEY>.Tests Run/Test cases added: (required)
npm run build(rollup) passes.open-ai-baseproviders (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: