Repository navigation
feat: add Tencent Token Plan support - #914
Merged
Merged
Conversation
This was referenced Jul 13, 2026
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.
Summary
tencent-token-plan, with its own Token Plan credential, endpoint, model snapshot, and fallback-only discovery contract.Why
Tencent Token Plan is a separate personal subscription product from Tencent Coding Plan and Tencent's direct API. Maka needs a stable identity and product-specific transport contract so saved connections cannot drift between those access paths. Refs #860.
Scope
This PR is limited to Phase 4 Tencent Token Plan. It does not add other Tencent products, providers, or Phase 7 work. Because Tencent documents Token Plan for interactive AI tools rather than scripts, backend services, or batch API use, Headless coverage proves only explicit fake wiring and intentionally does not load a Token Plan key from environment variables. Model discovery uses an honest registry snapshot because no public Token Plan model-list endpoint is documented.
Verification
npm run typechecknpm run buildand final cleannpm run rebuild(including overlay and renderer production builds)npm run check:stalenode scripts/check-third-party-notices.mjsvia the renderer buildgit diff --checklobehub/lobe-icons,@lobehub/[email protected], immutable commite4302041fbb3039608d25f9f618bd462783b875e,packages/static-svg/icons/tencentcloud.svg, MIT, and SHA-2560563b1dbaa01aff4f20352bc9eb49bec17debeb3901a9ee80b044ac4d792c97d; catalog and detail tests prove both Tencent plans consume the sharedProviderAssetMask/currentColorpath.currentColorbehavior; CI E2E is the merge gate.Impact
Users can save and select Tencent Token Plan independently with the exact provider ID and supported model IDs. Existing Tencent direct API and Tencent Coding Plan connections are unchanged. There is no storage migration, new asset, new third-party notice, or secret-handling change outside this provider.
Reviewer notes
Please focus on provider identity separation, fallback-only discovery, the reasoning/tool replay payload, the deliberate Headless credential boundary, and reuse of #904's shared Tencent Cloud SVG path.
Ready for review
Verificationexplains why it is not applicable