Repository navigation
feat: add PowerTokens OpenAI-compatible provider - #3997
Open
PowerTokens wants to merge 1 commit into
Open
PowerTokens wants to merge 1 commit into
PowerTokens wants to merge 1 commit into
Conversation
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
Contributor
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configuration
You can disable this status message by setting the Use the checkbox below for a quick retry:
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. Comment |
This branch has not been deployed
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
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)builtin-registration.tshttps://api.powertokens.ai/v1with curated models:glm-5.2,glm-5.3,glm-5-turbo,MiniMax-M3,qwen3-coder-plus,qwen3-max,deepseek-v3-2-251201src/renderer/static/icons/providers/powertokens.png(picked up byproviderIconSrc)BUILTIN_API_HOST_PROVIDERSso the host field stays editablepowertokens.test.ts, contract order, spotlight list,getModelOpenAI-compatible rowHow to test
https://api.powertokens.ai/v1and the curated models appear.deepseek-v3-2-251201orglm-5.2.GET https://api.powertokens.ai/v1/modelswith 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:
Please check the box below to confirm:
[x] I have read and agree with the above statement.