Show the model a stage will use and word the enrich row correctly
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
1 parent
800c0c428e
commit
2d9806bdbf
2 files changed
+17
-7
No files matched your search
+6
-3
@@ -11,11 +11,14 @@ finders ask it (`extract.extract_task`, `summarise.summarise_task`).
|
||||
|
||||
`enrich` (reading the best roles on their own pages, `app/jobs/enrich.py`)
|
||||
asks no model and is on by default (`enrich.enabled`); its switch is
|
||||
`stage:enrich`, set the same way through `PUT /api/stages/enrich`.
|
||||
`stage:enrich`, set the same way as the others: by the Runs page
|
||||
(`PUT /api/stages/enrich`) and by `app stages enrich on|off`.
|
||||
|
||||
`describe` is what `GET /api/stages` and `app stages` show: for each stage
|
||||
with a switch, the model stages and `enrich`, whether it is on, where that comes from, the model it uses, and who
|
||||
would answer.
|
||||
would answer. The model is the one a call is made with: `agent.model` when
|
||||
set, since it overrides the per-task model everywhere (`desk/modeltask.py`),
|
||||
else the stage's own.
|
||||
"""
|
||||
|
||||
from __future__ import annotations
|
||||
@@ -98,7 +101,7 @@ def describe_one(config: Config, store: Store, name: str) -> Stage:
|
||||
backend, said = answer(config)
|
||||
return Stage(name=name, on=stage_on(config, store, name),
|
||||
source="config" if stored(store, name) is None else "stored",
|
||||
model=getattr(getattr(config, name), "model", ""), backend=backend,
|
||||
model=config.agent.model or getattr(config, name).model, backend=backend,
|
||||
answer=said)
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user