diff --git a/web/.env.example b/web/.env.example index 7c57cd790c..b510e7672c 100644 --- a/web/.env.example +++ b/web/.env.example @@ -12,8 +12,8 @@ GITHUB_REPO=Hmbown/CodeWhale # (cloudflare cron triggers don't need this; they set cf-cron). CRON_SECRET= -# Optional — defaults to deepseek-v4-flash. -DEEPSEEK_MODEL=deepseek-v4-flash +# Optional — defaults to deepseek-flash. +DEEPSEEK_MODEL=deepseek-flash DEEPSEEK_BASE_URL=https://api.deepseek.com # Admin panel auth. Set to a random secret; enter it in the /admin login form. diff --git a/web/AGENT.md b/web/AGENT.md index 46f5b84b27..87c50385d8 100644 --- a/web/AGENT.md +++ b/web/AGENT.md @@ -1,6 +1,6 @@ # Community Assistant Agent -The community assistant is a set of Cloudflare Cron Triggers that call `deepseek-v4-flash` to draft triage comments, PR reviews, stale-issue nudges, duplicate suggestions, and weekly digests. **It never posts to GitHub directly.** Every output is a draft staged in Workers KV for maintainer review. +The community assistant is a set of Cloudflare Cron Triggers that call `deepseek-flash` to draft triage comments, PR reviews, stale-issue nudges, duplicate suggestions, and weekly digests. **It never posts to GitHub directly.** Every output is a draft staged in Workers KV for maintainer review. ## Architecture diff --git a/web/README.md b/web/README.md index 5f70c11c4d..8039ede51a 100644 --- a/web/README.md +++ b/web/README.md @@ -2,7 +2,7 @@ Documentation and community site for [Codewhale](https://github.com/Hmbown/CodeWhale) — lives at **codewhale.net**. -Next.js 15 (App Router) + Tailwind, deployed to Cloudflare Workers via [`@opennextjs/cloudflare`](https://opennext.js.org/cloudflare). Curated "Today's Dispatch" content is regenerated every 6 hours by a Cloudflare Cron Trigger that calls `deepseek-v4-flash` to summarise recent repo activity, and stored in Workers KV. +Next.js 15 (App Router) + Tailwind, deployed to Cloudflare Workers via [`@opennextjs/cloudflare`](https://opennext.js.org/cloudflare). Curated "Today's Dispatch" content is regenerated every 6 hours by a Cloudflare Cron Trigger that calls `deepseek-flash` to summarise recent repo activity, and stored in Workers KV. ## Local dev @@ -21,7 +21,7 @@ Env (mirrors `.env.example`): | `GITHUB_TOKEN` | Fine-grained PAT, public-repo read scope | optional (raises rate limit 60 → 5000 req/h) | | `GITHUB_REPO` | Defaults to `Hmbown/CodeWhale` | optional | | `CRON_SECRET` | Shared secret for manual `/api/cron` invocation | optional (Cloudflare cron triggers don't need it) | -| `DEEPSEEK_MODEL` | Defaults to `deepseek-v4-flash` | optional | +| `DEEPSEEK_MODEL` | Defaults to `deepseek-flash` | optional | | `DEEPSEEK_BASE_URL` | Defaults to `https://api.deepseek.com` | optional | | `MAINTAINER_TOKEN` | Admin panel auth; enter it in the `/admin` login form | only for `/admin` | | `MAINTAINER_GITHUB_PAT` | PAT with `issues:write`, for posting comments via `/admin` | only for `/admin` posting | diff --git a/web/lib/community-agent.ts b/web/lib/community-agent.ts index 594d5425c6..90773efd71 100644 --- a/web/lib/community-agent.ts +++ b/web/lib/community-agent.ts @@ -11,7 +11,7 @@ */ const MAX_OUTPUT_TOKENS = 2_000; const FALLBACK_BASE = "https://api.deepseek.com"; -const FALLBACK_MODEL = "deepseek-v4-flash"; +const FALLBACK_MODEL = "deepseek-flash"; interface ChatMessage { role: "system" | "user" | "assistant"; diff --git a/web/lib/content-watch.ts b/web/lib/content-watch.ts index 7c168784ec..d31dbfd69d 100644 --- a/web/lib/content-watch.ts +++ b/web/lib/content-watch.ts @@ -6,7 +6,7 @@ * writes a draft per broken link (4xx/5xx). Stores a * `linkcheck:last` summary so /admin can show last status. * - * runSemanticDrift — reads recent CHANGELOG / commits, asks deepseek-v4-flash + * runSemanticDrift — reads recent CHANGELOG / commits, asks deepseek-flash * whether any specific claims on the site look out of * date, writes review-required drafts. * diff --git a/web/lib/deepseek.ts b/web/lib/deepseek.ts index 078c00587f..1bcb2dd341 100644 --- a/web/lib/deepseek.ts +++ b/web/lib/deepseek.ts @@ -1,7 +1,7 @@ import type { CuratedDispatch, FeedItem, RepoStats } from "./types"; const FALLBACK_BASE = "https://api.deepseek.com"; -const FALLBACK_MODEL = "deepseek-v4-flash"; +const FALLBACK_MODEL = "deepseek-flash"; interface ChatMessage { role: "system" | "user" | "assistant"; diff --git a/web/wrangler.jsonc b/web/wrangler.jsonc index 9189973a1a..d8be3f4c8c 100644 --- a/web/wrangler.jsonc +++ b/web/wrangler.jsonc @@ -35,7 +35,7 @@ ], "vars": { "GITHUB_REPO": "Hmbown/CodeWhale", - "DEEPSEEK_MODEL": "deepseek-v4-flash", + "DEEPSEEK_MODEL": "deepseek-flash", "DEEPSEEK_BASE_URL": "https://gateway.ai.cloudflare.com/v1/cf50f793171d7cb3b2ce23368b69cdcb/codewhale-web/deepseek", "SUPABASE_URL": "https://mungbvkvpkxbkjzspehg.supabase.co" },