From 49ffac01241a2719f413dede238e60ca89e64508 Mon Sep 17 00:00:00 2001 From: Muse Sweep Date: Thu, 29 Oct 2026 04:10:11 +0000 Subject: [PATCH] docs(config): document DeepSeek holiday gap in peak windows (opencode#821) --- .opencode/opencode.jsonc | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/.opencode/opencode.jsonc b/.opencode/opencode.jsonc index 45263554b5..ba84143159 100644 --- a/.opencode/opencode.jsonc +++ b/.opencode/opencode.jsonc @@ -6543,7 +6543,11 @@ // { name, invert: true } for the inverse). DeepSeek deductions // double in the peak windows — Mon-Fri 01:00-04:00 + // 06:00-10:00 UTC — on Go, and ClinePass's DeepSeek reference - // rates split the same way, so during peak this chain leads + // rates split the same way (verified against DeepSeek's own + // pricing page 2026-10-29; the one clause not encoded is the + // Chinese-public-holiday exclusion — see the + // model_route_windows comment below and opencode#821), so + // during peak this chain leads // with MiMo and keeps Flash as the fallback, and off-peak it // leads with Flash. The shipped Window schema holds ONE // daily range per named window, so the two peak ranges are @@ -6769,6 +6773,26 @@ // schema holds one daily range per named window, so the two // ranges are two windows; the background route composes them // (see its comment for the position-by-position reading). + // VERIFIED 2026-10-29 against DeepSeek's own pricing page + // (https://api-docs.deepseek.com/quick_start/pricing/): "Off-peak + // rates are half of the peak rates. Peak hours are 01:00 - 04:00 + // and 06:00 - 10:00 UTC, Monday through Friday, excluding Chinese + // public holidays. All other hours are off-peak, including + // weekends and Chinese public holidays in full." So the times + // and the weekend treatment below are exactly right (weekends + // are off-peak in full — Chinese make-up workdays on a weekend + // do NOT become peak), but one clause is NOT encoded: a Chinese + // public holiday that falls Mon-Fri is off-peak for the whole + // day, and these windows still treat it as peak. The Window + // schema has no calendar dates, date ranges, or holiday lists + // and a gate cannot exclude one window from another, so the + // holiday exclusion cannot be expressed today — tracked in + // developing-today/opencode#821 (date-aware windows). Until + // that lands these two windows are the closest correct + // approximation: on weekday Chinese public holidays the + // background route leads with MiMo and treats Flash as + // peak-priced when it is actually off-peak — lost value on + // those days, never overspend. "deepseek-peak-early": { "daysOfWeek": ["mon", "tue", "wed", "thu", "fri"], "start": "01:00",