Files
zed/crates/opencode
Bennet Bo Fenner ad1058d78d Use Anthropic capability metadata and update model compatibility (#67203)
- Read compaction support and accepted thinking modes from the Anthropic
Models API.
- Infer system-message updates, preserved-thinking prefix binding,
adaptive-only thinking, and temperature restrictions from Claude family
and version. Keep fast mode and forced tool choice on explicit model
lists.
- Use an advertised thinking-off mode when available; otherwise retain
model-specific fallbacks for missing metadata and let models without an
off mode use their default.
- Cover family cutoffs, future model IDs, and request serialization in
regression tests.

Validation: 49 Anthropic unit tests, `cargo check -p language_models`,
formatting, and `git diff --check` passed.

Release Notes:

- Improved compatibility with new Claude models and kept Inline Assist
working on models that cannot turn thinking off.
2026-11-20 12:48:18 +00:00
..