fix(web): run the website agents on deepseek-flash (V4.1 Flash) - #6773
Merged
Merged
Conversation
The community agent and the curated-dispatch cron called deepseek-v4-flash. DeepSeek's pricing page (api-docs.deepseek.com/quick_start/pricing, read 2026-09-29) lists deepseek-flash as DeepSeek-V4.1-Flash, available on Chat Completions, and says the legacy deepseek-v4-flash name is still accepted but its model is retired and served by V4.1 Flash. Codewhale's own default (crates/config/src/provider_defaults.rs DEFAULT_DEEPSEEK_MODEL) is already deepseek-flash. Changes the wrangler DEEPSEEK_MODEL var, FALLBACK_MODEL in web/lib/community-agent.ts and web/lib/deepseek.ts, and the web README, AGENT.md, .env.example and content-watch comment. FALLBACK_BASE unchanged. The FAQ's Fin/OpenRouter mentions and generated facts describe the product, not the website agent, and are left alone. vitest community-agent*/content-watch/deepseek/deploy-preflight/ public-api-security: 5 files, 42 passed. tsc --noEmit exit 0. eslint on touched TS exit 0. check-docs PASS. No live DeepSeek call was made. Refs #6748 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014ZwqatxgVFxHvovngywnks
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.
Refs #6748
What
The website's DeepSeek callers now default to
deepseek-flash, which is DeepSeek-V4.1-Flash. They useddeepseek-v4-flashbefore. The callers are the community agent (triage, PR review, stale, dupes, digest and content-watch drafts) and the curated "Today's Dispatch" cron.web/wrangler.jsonc:vars.DEEPSEEK_MODELis nowdeepseek-flash.web/lib/community-agent.tsandweb/lib/deepseek.ts:FALLBACK_MODELis nowdeepseek-flash.FALLBACK_BASEis unchanged.web/README.md,web/AGENT.md,web/.env.exampleand theweb/lib/content-watch.tscomment now name the new ID.facts.generated.ts. They describe the Codewhale product, not the website agent. No Rust was touched.Why
DeepSeek's pricing page (https://api-docs.deepseek.com/quick_start/pricing, read 2026-09-29) lists
deepseek-flashas DeepSeek-V4.1-Flash, available on Chat Completions (the route the website uses). It also says the legacydeepseek-v4-flashname "is still accepted, but the corresponding models have been retired", and those requests are served by V4.1 Flash. Codewhale's own default,DEFAULT_DEEPSEEK_MODELincrates/config/src/provider_defaults.rs, is alreadydeepseek-flash. This change makes the website match it.Evidence
viteston community-agent*, content-watch, deepseek, deploy-preflight and public-api-security: 5 files, 42 passed.tsc --noEmitexit 0.eslinton the touched TS exit 0.node scripts/check-docs.mjsPASS.wrangler.jsoncstill parses as JSON (deploy-preflightreads it that way).check-feature-release-notes.shapplies only tofeat:subjects, and this isfix:.🤖 Generated with Claude Code