Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions web/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion web/AGENT.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down
4 changes: 2 additions & 2 deletions web/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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 |
Expand Down
2 changes: 1 addition & 1 deletion web/lib/community-agent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
2 changes: 1 addition & 1 deletion web/lib/content-watch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down
2 changes: 1 addition & 1 deletion web/lib/deepseek.ts
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
2 changes: 1 addition & 1 deletion web/wrangler.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
Loading