Skip to content

feat: add TokenMix as a model provider#12630

Open
TokenMixAi wants to merge 1 commit into
continuedev:mainfrom
TokenMixAi:tokenmix-provider
Open

feat: add TokenMix as a model provider#12630
TokenMixAi wants to merge 1 commit into
continuedev:mainfrom
TokenMixAi:tokenmix-provider

Conversation

@TokenMixAi

@TokenMixAi TokenMixAi commented Jun 15, 2026

Copy link
Copy Markdown

Description

Adds TokenMix as a model provider. TokenMix is an OpenAI-compatible API gateway that exposes DeepSeek, Qwen, Kimi, GLM, MiniMax and other models through a single endpoint (https://api.tokenmix.ai/v1) and one API key, so it slots in as a standard OpenAI-compatible provider.

Usage:

models:
  - name: DeepSeek V4 Pro
    provider: tokenmix
    model: deepseek/deepseek-v4-pro
    apiKey: <YOUR_TOKENMIX_API_KEY>
    roles:
      - chat

Changes

  • core/llm/llms/Tokenmix.ts — new provider class extending OpenAI (mirrors Tensorix/zAI)
  • core/llm/llms/index.ts — register Tokenmix in LLMClasses
  • packages/openai-adapters/src/types.ts — add tokenmix to the OpenAIConfigSchema provider union
  • packages/openai-adapters/src/index.ts — route tokenmix through openAICompatible(...)
  • gui/src/pages/AddNewModel/configs/providers.ts — Add-Model tile (models auto-detected via /v1/models)
  • docs/customize/model-providers/more/tokenmix.mdx + docs/docs.json — docs page and nav entry

Checklist

  • The relevant docs, if any, have been updated or created
  • packages/openai-adapters typechecks clean (tsc --noEmit)
  • Prettier formatting verified on all changed source/JSON files
  • New provider follows the existing OpenAI-compatible provider pattern (Tensorix, zAI)

Tests

The provider is a thin OpenAI-compatible wrapper following the same pattern as existing gateways (Tensorix, zAI, Nebius). No new test fixtures were added, consistent with those providers.


Summary by cubic

Adds TokenMix as a new OpenAI-compatible provider so you can use DeepSeek, Qwen, Kimi, GLM, MiniMax, and more through one endpoint and API key.
Default base is https://api.tokenmix.ai/v1 and default model is deepseek/deepseek-v4-pro.

  • New Features
    • Added Tokenmix provider class extending OpenAI with apiBase https://api.tokenmix.ai/v1/ and default model deepseek/deepseek-v4-pro.
    • Registered provider in core/llm/llms/index.ts and packages/openai-adapters (provider union + openAICompatible(...) routing).
    • Added Add-Model GUI tile with API key input and model autodetect via /v1/models.
    • Added docs page and navigation entry for TokenMix configuration.

Written for commit 9133615. Summary will update on new commits.

Review in cubic

TokenMix (https://tokenmix.ai) is an OpenAI-compatible API gateway that
exposes DeepSeek, Qwen, Kimi, GLM, MiniMax and other models through a
single endpoint and API key.

- Add Tokenmix LLM class (core/llm/llms/Tokenmix.ts), extending OpenAI
- Register it in core/llm/llms/index.ts
- Add tokenmix to the openai-adapters provider union + routing
- Add an Add-Model GUI tile (AUTODETECT models via /v1/models)
- Add docs page + nav entry
@TokenMixAi TokenMixAi requested a review from a team as a code owner June 15, 2026 10:27
@TokenMixAi TokenMixAi requested review from sestinj and removed request for a team June 15, 2026 10:27
@dosubot dosubot Bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Jun 15, 2026
@github-actions

Copy link
Copy Markdown
Contributor


Thank you for your submission, we really appreciate it. Like many open-source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution. You can sign the CLA by just posting a Pull Request Comment same as the below format.


I have read the CLA Document and I hereby sign the CLA


You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot.

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 7 files

Re-trigger cubic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:L This PR changes 100-499 lines, ignoring generated files.

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

1 participant