Skip to content
Source
Sign inSign up
TanStack/schemas

Price BytePlus DeepSeek V4.1 Flash (peak periods) and seed-translation #423

Mergedtombeckenhammerged 2 commits intomain fromrefs/pull/423/headmerged by tombeckenham View on GitHub

tombeckenhamcommented

Part of #411 (BytePlus).

What was missing

Four live BytePlus chat rows had no card:

rowcausenow
deepseek-v4-1-flash-260910priced on the ModelArk pricing page, but by off-peak / peak hours; the parser refused any non-prompt-length tierpriced
deepseek-v4-1-flash-261017samepriced
deepseek-v4-1-flash-economy-261017samepriced
seed-translation-250915no row on the pricing page; its own model page has a "Model Price" tablepriced (input/output); cacheRead ledgered

Changes

  • Peak-period cards. A group with exactly one Off-peak hours and one Peak hours row becomes { periods: { off_peak, peak } }. compilePeriodCard builds a token card with a required pricing_period enum lever (off_peak | peak, no default). The request carries no clock, so the card refuses rather than present either rate as the price. The page states the windows (UTC+8 Mon–Fri 09:00–12:00 and 14:00–18:00). Any other mix of period rows refuses. This deliberately does not follow deepseek-pricing.ts, which stores off-peak as the price.
  • seed-translation. parseByteplusModelPage reads the single price row of https://docs.byteplus.com/en/docs/ModelArk/recommended-models-seed-translation. It throws unless there is exactly one table and one row, and the input/output cells are plain decimals. The page is loaded through tryDocs. On failure, the row gets unavailable('pricing'), which keeps the stored card, and the failure is reported in docsFailures. byteplus.ts now returns docsFailures.
  • Gap scoring. completeness.ts counts priced / cacheRead on a card with no base rate row only when every row has the lever.
  • overlayModelFacts now merges absent across patches. Before, a later patch (reasoning) could overwrite an earlier one's absent (pricing).
  • docs/source-silent/byteplus.md (new): seed-translation-250915: cacheRead. Its model page marks "Input Hits Cache" as -, and the pricing page has no row for it.

Not published (left null)

  • seed-translation cache-read price (ledgered above).

Verified against the live pages on 2026-10-22. Parsed: v4.1 Flash off-peak 0.15/0.003/0.60 and peak 0.30/0.006/1.20 USD/M (economy 0.12/0.0024/0.48 and 0.24/0.0048/0.96); seed-translation 0.20/0.80.

The list summary probes with zero usage, so a period card summarises as per: 'token', with no rate shown as "the" price. /v1/estimate callers must pass pricing_period in usage.

    1. Deploying with  Cloudflare Workers  Cloudflare Workers

      The latest updates on your project. Learn more about integrating Git with Workers.

      StatusNameLatest CommitPreview URLUpdated (UTC)
      ✅ Deployment successful!
      View logs
      modelschemasecd615eeCommit Preview URL

      Branch Preview URL
      Oct 22 2026, 11:19 AM
    2. tombeckenham merged this351c160

    3. tombeckenham closed this

Sign in to join this conversation.