readPersistedThinkingLevel (core/model-caps.ts)

brigade · src/core/model-caps.ts · typescript · MIT
ai

* Model capability adapter. Pi-AI exposes ~150+ models across 9 providers. They have wildly different defaults, quirks, and breakages. This module is the single place where Brigade encodes that knowledge. Two responsibilities: 1. Pick a SAFE initial `thinkingLevel` for a freshly-

// Source: https://github.com/spinabot/brigade | License: MIT | Copyright 2026 Spinabot
// Provided via justclaw.it.com; keep this notice with the code.
/**
 * Model capability adapter.
 *
 * Pi-AI exposes ~150+ models across 9 providers. They have wildly different
 * defaults, quirks, and breakages. This module is the single place where
 * Brigade encodes that knowledge. Two responsibilities:
 *
 *   1. Pick a SAFE initial `thinkingLevel` for a freshly-selected model
 *      (some reasoning-only models reject `thinking budget = 0`).
 *   2. Render a human-readable description of what a model supports
 *      (used in the header and in the model picker).
 *
 * If a new model regression shows up — "X provider rejects Y when Z" —
 * encode it here, not scattered across agent.ts/tui.ts/onboar

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key