Skip to content

feat: add PowerTokens OpenAI-compatible provider - #3997

Open
PowerTokens wants to merge 1 commit into
chatboxai:mainfrom
PowerTokens:feat/powertokens-provider
Open

PowerTokens wants to merge 1 commit into
chatboxai:mainfrom
PowerTokens:feat/powertokens-provider

Conversation

@PowerTokens

Copy link
Copy Markdown

Description

Adds PowerTokens as a built-in OpenAI-compatible provider.

I work on PowerTokens (powertokens.ai). It is an OpenAI-compatible gateway at https://api.powertokens.ai/v1, focused on mainland-reachable access to GLM / MiniMax / Qwen / DeepSeek models.

Closes #3996

Follows the current registry guide (docs/adding-new-provider.md) and the same pattern as LongCat / SiliconFlow:

  • ModelProviderEnum.PowerTokens = 'powertokens'
  • src/shared/providers/definitions/powertokens.ts + models/powertokens.ts (OpenAICompatible)
  • Side-effect import in builtin-registration.ts
  • Default host https://api.powertokens.ai/v1 with curated models: glm-5.2, glm-5.3, glm-5-turbo, MiniMax-M3, qwen3-coder-plus, qwen3-max, deepseek-v3-2-251201
  • Icon: src/renderer/static/icons/providers/powertokens.png (picked up by providerIconSrc)
  • Included in BUILTIN_API_HOST_PROVIDERS so the host field stays editable
  • Tests: powertokens.test.ts, contract order, spotlight list, getModel OpenAI-compatible row

How to test

  1. Build / run Chatbox, open Settings → Providers → Add provider, search PowerTokens.
  2. Paste an API key from https://powertokens.ai/api-keys
  3. Confirm default host is https://api.powertokens.ai/v1 and the curated models appear.
  4. Send a short chat with deepseek-v3-2-251201 or glm-5.2.
  5. Optional: GET https://api.powertokens.ai/v1/models with the same key to refresh/discover additional models.

Links (no UTM)

Contributor Agreement

By submitting this Pull Request, I confirm that I have read and agree to the following terms:

  • I agree to contribute all code submitted in this PR to the open-source community edition licensed under GPLv3 and the proprietary official edition without compensation.
  • I grant the official edition development team the rights to freely use, modify, and distribute this code, including for commercial purposes.
  • I confirm that this code is my original work, or I have obtained the appropriate authorization from the copyright holder to submit this code under these terms.
  • I understand that the submitted code will be publicly released under the GPLv3 license, and may also be used in the proprietary official edition.

Please check the box below to confirm:

[x] I have read and agree with the above statement.

Register PowerTokens as a built-in provider using OpenAICompatible,
with default host https://api.powertokens.ai/v1 and curated GLM /
MiniMax / Qwen / DeepSeek V3.2 models. Follows the LongCat registry
pattern (enum, defineProvider, builtin registration, icon, tests).

Closes chatboxai#3996
@coderabbitai

coderabbitai Bot commented Oct 20, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: ac7147b5-7667-49cc-8e48-e2727ea6e12a

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

This branch has not been deployed

No deployments
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.

feat: add PowerTokens as a built-in OpenAI-compatible provider

1 participant