Repository navigation
Route Quick to DeepSeek on Maple and make Chat Completions paid-only - #1437
Merged
Merged
Conversation
- DeepSeek V4.1 Flash is the auto:quick target on Free and Paid and is now Free-tier. Paid Quick falls back to GLM 5.3 Flash (Continuum) only after every DeepSeek route is unavailable; Free Quick has no fallback. - Stock DeepSeek account buckets split 99% Maple i01 / 1% Tinfoil, keeping live traffic on the Tinfoil route for health and circuit state. - GPT-OSS 120B, GPT-OSS Safeguard and Llama 3.3 move to Pro; GPT-OSS and Llama leave the chat catalog but stay in the API for released clients. - /v1/chat/completions refuses Free callers with model_not_available_on_plan and returns 503 when billing cannot confirm the plan. System One keeps its own entitlement. - Maple Agent titles and summaries ask auto:quick with thinking off. - SDK integration defaults move off retired and Pro-only models. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Contributor
|
Maple development preview: https://2d875c86.maple-ca8.pages.dev Commit: Uses development API, billing, flags and PCR configuration. Cloudflare Access applies. |
Title generation was pinned to Llama 3.3 on the Free plan for every account, so moving Llama to Pro left all new conversations untitled. Titles now use the Quick model, which every plan may use, with reasoning off. Co-Authored-By: Claude Opus 5.5 <[email protected]>
- GPT-OSS 120B and Llama 3.3 return to the chat catalog for paid plans. They stay hidden from the Free catalog and refused on Free. - Titles ask auto:quick on the account's own plan, so they take the Auto model stage: paid titles reach GLM 5.3 Flash once every DeepSeek route is out, and Free keeps its single target. - The title request is built for the chosen model with the least reasoning it accepts, through the shared request policy. Co-Authored-By: Claude Opus 5.5 <[email protected]>
A title whose chosen model loses its routes or first-send claim now decides once more without that model, matching Chat Completions. Both failures precede any provider attempt, so nothing is replayed. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This branch was successfully 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.
Summary
Router V2 and plan-policy changes for Quick, plus closing Chat Completions to Free accounts.
Routing and catalog (
services/opensecret)auto:quickresolves to DeepSeek V4.1 Flash on Free and Paid, and DeepSeek is now Free-tier.70×10 : 100×693). The 1% keeps live traffic and probes on the Tinfoil route so its health/circuit state stays current. Sticky routes and health gates keep their normal precedence, so existing accounts move as their memory expires.paid_catalog_only); both stay in/v1/modelsfor paid API callers and already-installed agents that still request Llama for titles. Safeguard stays API-only.routing-v2-maple-instances-v7,auto-model-v3.QUICK_MODEL_IDnow names the Quick tier's target; the GPT-OSS ID isGPT_OSS_120B_MODEL_ID.Chat Completions is paid-only
/v1/chat/completionsrefuses Free callers with the existingmodel_not_available_on_plan(403), which the agent and Research already present as an upgrade prompt.model→ 400) still runs first.Clients
auto:quickwith thinking off. On a GLM Flash fallback the backend clampsnonetolow; a 15-token title may then come back empty and the prompt-derived title is used.auto:quickon the account's own plan instead of a hardcoded Llama request on the Free plan. They take the same Auto stage and Router V2 path as Quick chat: paid titles fall back to GLM 5.3 Flash, Free titles have no fallback. A chosen model that loses its routes or first-send claim before any send gets one further decision without it, matching Chat Completions. The body is built for the chosen model with the least reasoning it accepts (noneon DeepSeek,lowon GLM Flash).deepseek-v4-1-flash, reasoning defaultkimi-k3(kimi-k2-5is retired), TTS defaultvoxtral-tts, and the API-key model-list check looks for the Quick model. Live Chat Completions tests now need a paid account.Behavior notes for review
access: "free"in the catalog, so a Free agent user can pick it and will get the upgrade error.Validation
services/opensecret:cargo fmt --check,cargo clippy --all-targets --locked -D warnings,cargo test --bins --locked→ 1096 passed, 55 ignored. New/rewritten tests cover the Maple → Tinfoil → Continuum Flash → reject chain, the 1/99 bucket split, the plan gates, the Chat Completions gate, the per-plan catalog, and title model selection, fallback and re-decision.apps/maple-agent:cargo test -p maple-agent --locked→ 793 passed;just ci-lintpassed.sdk: Rustcargo fmt --checkandcargo test --tests --no-run; Prettier check on the changed TS tests.ci-testfails on this macOS 27.2 host in the untouchedmaple-agent-updatertestreads_native_release_tar_format_and_preserves_bundle_modes(host bsdtar 3.5.3 writes archive metadata the scanner rejects), independent of this diff.mdeworkspace with local billing and Free/Pro fixtures, real Maple, Tinfoil and Continuum providers, Research web):auto:quickand DeepSeek served over Responses;gpt-oss-120bandllama3-3-70b→ 403; Chat Completions → 403model_not_available_on_plan. The picker does not list GPT-OSS or Llama. A UI chat on Quick worked and got a generated title.auto:quick, DeepSeek, GPT-OSS and Llama served over Responses;auto:quickand Safeguard served over Chat Completions. The picker lists GPT-OSS and Llama, and a UI chat on GPT-OSS worked with a title generated throughauto:quick.maple-i01.selector=auto:quick, surface=Internal) and pinning through Router V2 tomaple-i01.🤖 Generated with Claude Code
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.