feat(core): add qwen3.8-max-preview to Alibaba Token Plan - #1315
Closed
Lynskylate wants to merge 1 commit into
Closed
feat(core): add qwen3.8-max-preview to Alibaba Token Plan#1315Lynskylate wants to merge 1 commit into
Lynskylate wants to merge 1 commit into
Conversation
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.
What
Add the new Qwen3.8 Max Preview flagship (released 2026-07-19 on models.dev) to the Alibaba Token Plan catalog, for both the China (
cn-beijing) and global (Singapore) access paths. Configuration mirrors the existingqwen3.7/qwen3.6entries.Changes
packages/core/src/provider-registry.ts— registerqwen3.8-max-previewat the top ofalibabaTokenPlanModelIds(newest flagship first), which feedsfallbackModelsfor both regions.packages/core/src/model-metadata.generated.ts— add generated metadata entries foralibaba-token-plan-cn(/zhdocs) andalibaba-token-plan(/endocs): 1M context, 131072 max output, vision + reasoning + function calling. Source:https://models.dev/api.json.model-catalogandllm-connectionsfixtures that pin the exact token-plan model list, including theentries[0]assertions (nowqwen3.8-max-preview).The existing provider-registry validation already enforces that every allowlisted id has
functionCallingin the generated snapshot, so the new entry is covered by that guard.Verification
npm install✔npm --workspace @maka/core run build✔npm --workspace @maka/core run test:dist✔ (1132 tests)node --test scripts/sync-model-metadata.test.mjs✔ (30 tests)Notes
model-metadata.generated.tssurgically rather than runningscripts/sync-model-metadata.mjs, because a full regeneration drifts ~587 lines across unrelated providers (ollama-cloud renames, moonshot additions, lifecycle flips). The added entry exactly matches what the sync script emits for this model.