Give the usaco site the Claude key for its Explain button
The usaco site now has an admin Explain button that asks Claude for a diagrammed explanation of a problem. Pass it CLAUDE_API_KEY, and its own model setting, USACO_CLAUDE_MODEL (blank is claude-opus-5-5), so the rowing reader's CLAUDE_MODEL is unaffected. Without the key the button is off and the rest of the site works. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
+9
-3
@@ -205,9 +205,10 @@ CLOUDFLARE_TUNNEL_TOKEN=
|
||||
CLOUDFLARE_DNS_API_TOKEN=
|
||||
|
||||
# --- Third-party API keys (backend) ------------------------------------------
|
||||
# CLAUDE_API_KEY is used by the python service, which makes every Claude call
|
||||
# in the stack: the rowing photo reader, the job posting reader and the email
|
||||
# pipeline's classifier. The backend no longer calls Claude itself.
|
||||
# CLAUDE_API_KEY is used by the python service, which makes the main site's
|
||||
# Claude calls: the rowing photo reader, the job posting reader and the email
|
||||
# pipeline's classifier. The backend no longer calls Claude itself. The jobs
|
||||
# and usaco containers get the same key for their own calls.
|
||||
CLAUDE_API_KEY=
|
||||
# Which model those calls use: claude-haiku-4-5 (cheapest), claude-sonnet-5-5
|
||||
# (the default when blank) or claude-opus-5-5. Recreate the python service
|
||||
@@ -243,6 +244,11 @@ USACO_GIT_TOKEN=
|
||||
# (http://usaco:8080/usaco/api/hooks/gitea). Blank turns the hook off and
|
||||
# the site only pulls every 10 minutes. Generate with `openssl rand -hex 32`.
|
||||
USACO_WEBHOOK_SECRET=
|
||||
# Model for the problem explanations (the admin's Explain button), separate
|
||||
# from CLAUDE_MODEL because those are long, considered answers rather than
|
||||
# extraction. Blank means claude-opus-5-5. The key is CLAUDE_API_KEY above;
|
||||
# without it the button is off and the rest of the site works.
|
||||
USACO_CLAUDE_MODEL=
|
||||
|
||||
# --- Activity tracker (/tracker/) --------------------------------------------
|
||||
# An image built and published by the ccp repo's CI. Blank runs :latest; set a
|
||||
|
||||
Reference in New Issue
Block a user