Skip to content

Support Continuum GLM Flash on legacy and v2 routers - #953

Merged
AnthonyRonning merged 1 commit into
masterfrom
codex-glmflash-maple
Sep 16, 2026
Merged

AnthonyRonning merged 1 commit into
masterfrom
codex-glmflash-maple

Conversation

@AnthonyRonning

@AnthonyRonning AnthonyRonning commented Sep 16, 2026 •

Copy link
Copy Markdown
Contributor

Tinfoil Flash rate limits currently leave legacy-router users without an alternative provider. Add Continuum/Edgeless for the same public glm-5-3-flash model on both routing paths, while retaining the shared customer price of $0.80 input / $2.50 output / $0.20 cached input per million tokens.

Routing and rollout

  • Router v1: new flag provider-routing.glm-5-3-flash.continuum. True selects Continuum; false, missing configuration, failed lookup or timeout retains Tinfoil. If Continuum is unconfigured, selection falls back to Tinfoil. Existing GLM 5.3 flags remain unchanged. V1 does not gain automatic health failover.
  • Router v2: ignores legacy provider flags. Flash keeps a sticky 90% Tinfoil / 10% Continuum account split (buckets 0–9 use Continuum). Account percentage is not request or spend percentage.
  • Flash v2 capacity handling: 429 and 503/529 gates can select the other healthy same-model provider before dispatch. Transport/stream failures do not trigger Flash cross-provider failover. Already-sent requests are not replayed.
  • GLM 5.3 retains its 70/30 v2 split and full health-gate policy.
  • Public and response ID stays glm-5-3-flash; upstream IDs are Tinfoil glm-5-3-flash and Continuum glm-5.3-flash.

Deploy companion billing PR #104 before enabling Continuum Flash usage, so costs and cached-input charges are recorded correctly. Deploy the backend before enabling the new v1 flag for selected accounts. V2 can be enabled separately for a small known cohort exercising both providers. Backend feature-flag results can remain cached for ten minutes. Source changes do not enable production flags.

Catalog and client changes

  • Shared Flash context window becomes 262,144 tokens, the smaller provider window (Tinfoil advertises 1,048,576). This affects long existing Flash workloads and requires explicit rollout consideration.
  • Remove deprecated Kimi K2.6 from the public catalog and both routers; retain its historical billing rates for delayed events.
  • Use Continuum Flash with low reasoning effort as the first image-description candidate.
  • Map the saved new-task Kimi K2.6 model preference to Flash; Powerful fallback targets GLM 5.3. Existing agent task/session model locks are not migrated by this preference helper.

Validation

At the updated backend head, local pinned Nix checks passed:

  • Formatting and all-target/all-feature Clippy with warnings denied.
  • Full locked all-feature backend suite: 647 passed, 23 ignored.
  • Frontend pre-commit checks: Prettier, TypeScript/Vite build, and 1,003 tests passed.
  • Companion billing SQS/pricing suite: 55 passed (existing duplicate-test-attribute warning in zaprite.rs).
  • Focused provider routing suite: 38 passed, including missing/false/true Flash flags across all 100 account buckets, canonical IDs, missing-provider fallback, v2 independence from the legacy flag, and existing capacity/timeout policies.

Ignored database/live-provider tests were not run. This update adds no new live provider or encrypted-client smoke evidence; deployed behavior remains a separate check. Existing frontend changes are unchanged by the v1 routing follow-up.

Customer pricing remains unchanged in both drafts. Actual Continuum cache hit rates and usage costs should inform later pricing or allocation changes; per-direction provider-price differences alone do not determine whole-request economics.

@github-actions

github-actions Bot commented Sep 16, 2026 •

Copy link
Copy Markdown
Contributor

Maple development preview: https://7e40b38c.maple-ca8.pages.dev

Commit: 04935a9765c45569f750b623f684194353ce76e1

Uses development API, billing, flags and PCR configuration. Cloudflare Access applies.

@AnthonyRonning AnthonyRonning changed the title Add Continuum GLM-5.3-Flash as a 10% router-v2 failover Support Continuum GLM Flash on legacy and v2 routers Sep 16, 2026
@AnthonyRonning
AnthonyRonning marked this pull request as ready for review September 16, 2026 23:04
Add opt-in legacy routing and a 90/10 router-v2 allocation with capacity gates. Keep public model IDs stable, align the Flash context window with both providers, and retire Kimi K2.6 from current model selection.
@AnthonyRonning
AnthonyRonning merged commit 79ffc6b into master Sep 16, 2026
30 checks passed
@AnthonyRonning
AnthonyRonning deleted the codex-glmflash-maple branch September 16, 2026 23:35

This branch was successfully deployed

1 active deployment
pages-pr-953 — 04935a97 Deployed Sep 16, 2026 by github-actions[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant