Repository navigation
Route both GLM models 75% to Continuum and expand Flash context - #1026
Merged
Merged
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.
GLM 5.3 and GLM 5.3 Flash currently assign 30% of healthy Router V2 account buckets to Continuum. Increase both to 75% Continuum / 25% Tinfoil, including Auto when it selects either model. The planner combines provider and model-route weights: each Continuum route now uses weight 700, giving
30 * 700 : 70 * 100 = 75 : 25. Identify this policy asrouting-v2-weighted-v5.Raise Flash's shared context window from 262,144 to 1,048,576 tokens now that both providers support it. This propagates through the public model catalog, token budgets, Responses history assembly, and Auto Quick fallback eligibility. Continuum's v1.57.0 model configuration sets
--max-model-len=1048576; its model overview and Tinfoil's model metadata agree. GLM 5.3's context limit is outside this change.Eligible remembered routes retain precedence, so these percentages describe deterministic account buckets rather than per-request shares. Health gates, fallback, first-send/replay rules, legacy routing, and customer pricing retain their existing behavior.
Validation covers all account buckets across Chat, Responses, and internal workloads; the 74/75 boundary; image-helper provider selection; V1 preference independence; remembered routes; and fallback in both directions. Context tests cover catalog/token-budget propagation, Flash history above the former limit, the 1M boundary, and Auto fallback. Smaller-alternate guards remain tested with an explicit synthetic pairing; capacity-contract tests use a real incompatible-tool-history case because Quick's two models now share the same window.
Pinned backend Nix validation, with stateful shell hooks disabled:
cargo fmt --all -- --check: passed.RUSTFLAGS='-D warnings' cargo clippy --locked --all-targets --all-features -- -D warnings: passed.RUSTFLAGS='-D warnings' cargo test --locked --all-features: 727 passed, 0 failed, 32 ignored.This is source and local-test evidence; no live provider inference or backend deployment was performed for this PR.