Repository navigation
Fix image helper routing and raise V2 Flash Continuum allocation - #963
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.
Image helpers required Continuum Flash even when request-scoped routing selected Tinfoil. That rejected Flash before any provider send and unnecessarily fell back to Gemma. The first commit makes helpers select only the public model and delegates provider selection to ordinary V1/V2 routing. It preserves the Flash → Gemma → Kimi order, reasoning settings, bounded response handling, and usage accounting; completion logs record the provider that actually answered.
The separate follow-up commit changes healthy V2 Flash allocation from 90% Tinfoil / 10% Continuum to 70% / 30% across Responses, Chat Completions, and helpers. Allocation remains sticky by account, and Flash retains its capacity-only failover policy. Routing policy version advances to
routing-v2-weighted-v3. V1 provider preferences and the production Router V2 rollout percentage are unchanged.Validation on macOS through the pinned backend Nix environment, with
RUSTFLAGS='-D warnings':cargo fmt --all -- --checkcargo clippy --locked --all-targets --all-features -- -D warningscargo test --locked --all-features: 647 passed, 23 ignored, zero failures.Local encrypted SDK smoke at
0060b1c4now passed against the local backend with live Tinfoil and Continuum:read_imagepair.Paid entitlement came from an authenticated loopback billing fixture. SQS was disabled, so downstream billing delivery/pricing was not exercised. The 23 opt-in database/live-provider test cases remain ignored; the live validation above used the encrypted SDK instead. The manager's generic smoke command reached an obsolete
/health-check-extendedendpoint and received 404; direct health and the functional SDK checks passed. Nothing has been deployed.