feat(coding-agent): allow configuring Anthropic fallback models

Allow models.json overrides to replace or disable server-side fallback metadata.

Fixes #9294
This commit is contained in:
David Brailovsky 2026-09-16 10:49:11 +02:00
parent 60e7e76bd7
commit b03a367a4f
4 changed files with 77 additions and 19 deletions

View file

@ -435,6 +435,7 @@ Built-in Anthropic models enable `supportsStrictTools` in their model metadata.
| `supportsMidConvoEffort` | Whether the exact Claude model transport supports per-turn effort system messages and thinking binding controls. Pi persists native effort levels and always sends `drop_block` when enabled. Default: `false`. |
| `allowEmptySignature` | Whether to replay empty thinking signatures as `signature: ""` instead of converting thinking to text. Default: `false`. |
| `supportsStrictTools` | Whether the provider accepts strict JSON-schema tool definitions. Default: `false`; built-in Anthropic models enable it in generated metadata. |
| `allowedFallbackModels` | Up to three server-side fallback models, each with `provider`, `model`, and complete `cost` metadata. An empty array disables fallback. |
## OpenAI Compatibility