Default to Sonnet 5.5 and make the Claude model an admin setting
Every Claude call used a hard-coded claude-haiku-4-5. The model is now CLAUDE_MODEL, read by the Python service, defaulting to claude-sonnet-5-5 and offered on the admin panel's Environment tab as a choice of Haiku 4.5, Sonnet 5.5 and Opus 5.5. The request is shaped per model. Sonnet and Opus think by default and bill that against max_tokens, so they get low effort and 4,000 tokens of headroom over each caller's reply ceiling; Haiku 4.5 rejects the effort setting and keeps the plain request. A refusal is logged and reported as the route's failed message instead of surfacing as an empty reply. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
+2
-1
@@ -260,7 +260,8 @@ Two distinct mechanisms read it, and services use both:
|
||||
`gitea` instead receives explicit `GITEA__section__KEY` variables (Gitea's own
|
||||
convention for overriding `app.ini` keys), and `python` receives an explicit
|
||||
allow-list, so it never sees the database password or any API key other than
|
||||
the two it uses (`TFL_APP_KEY`, and `CLAUDE_API_KEY`). The Python service
|
||||
the two it uses (`TFL_APP_KEY`, and `CLAUDE_API_KEY`, plus `CLAUDE_MODEL`,
|
||||
which picks the model). The Python service
|
||||
makes every Claude call in the stack — rowing photo reader, job posting reader,
|
||||
job lead scorer and email classifier — so it is the only container that reads `CLAUDE_API_KEY`;
|
||||
the backend receives it through `env_file` but no longer uses it. A new
|
||||
|
||||
Reference in New Issue
Block a user