You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit b5d2241
Browse filesBrowse the repository at this point in the historyBrowse files
feat: configure decision model in ai.decisionModel
DecisionAI owns decision defaults and validation and reads them from
ai.decisionModel (same key as explorbot). Decision helper has no own
options and works without --ai flag.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: docs/ai.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -353,7 +353,7 @@ I.decideVisually('sidebar is shown')
353
353
354
354
It uses a [decision model](https://openrouter.ai/models?output_modalities=decisions) like [Jev](https://openrouter.ai/typesafe/jev-1.13) instead of a chat model. A decision model reads the page and returns the probability that a statement is true. It is fast, costs a fraction of a cent per request, and gives a probability instead of free text, so a step passes or fails on a confidence threshold you set.
355
355
356
-
The Decision helper calls the decisions API directly and does not use the `ai` config section or the `--ai` flag. See [Decision Assertions](/assertions#decision-assertions) for setup and usage.
356
+
Configure it in `ai.decisionModel`. Decisions call the decisions API directly, so they don't need `ai.model` or the `--ai` flag. See [Decision Assertions](/assertions#decision-assertions) for setup and usage.
Copy file name to clipboardExpand all lines: docs/assertions.md
+21-4Lines changed: 21 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -407,18 +407,35 @@ A [decision model](https://openrouter.ai/models?output_modalities=decisions), li
407
407
-**Cost-efficient.** A request costs a fraction of a cent. You can run decision assertions in every CI build.
408
408
-**Reliable.** The answer is a probability, not free text. There is nothing to parse, and you choose how confident the model must be for the step to pass.
409
409
410
-
Enable the helper next to your browser helper and set `OPENROUTER_API_KEY`:
410
+
Set `OPENROUTER_API_KEY`, configure the decision model in the `ai` section, and enable the helper next to your browser helper:
if(!this.endpoint)thrownewError(`Unknown decision provider "${provider}", use one of: ${Object.keys(DECISION_ENDPOINTS).join(', ')}`)
285
-
this.provider=provider
286
-
this.apiKey=apiKey
287
-
this.timeout=timeout
296
+
if(!this.endpoint)thrownewError(`Unknown decision provider "${provider}" in ai.decisionModel, use one of: ${Object.keys(DECISION_ENDPOINTS).join(', ')}`)
297
+
if(!(confidence>0&&confidence<1))thrownewError(`ai.decisionModel.confidence must be between 0 and 1, got ${confidence}`)
0 commit comments