feat(ai): add thinkingDisplay option for Anthropic and Bedrock Claude

Exposes the new ThinkingConfig.display field on Anthropic and Bedrock
Claude providers. Defaults to 'summarized' so Claude Opus 4.7 and Mythos
Preview keep returning thinking text despite Anthropic's silent default
change to 'omitted'. Set to 'omitted' explicitly to skip thinking
streaming for faster time-to-first-text-token.
This commit is contained in:
Mario Zechner
2026-04-16 22:12:06 +02:00
parent 7b45c52807
commit acbf8eca06
4 changed files with 45 additions and 5 deletions

View File

@@ -5,6 +5,11 @@
### Added
- Added `onResponse` to `StreamOptions` so callers can inspect provider HTTP status and headers after each response arrives and before the response stream is consumed ([#3128](https://github.com/badlogic/pi-mono/issues/3128))
- Added `thinkingDisplay` (`"summarized" | "omitted"`) to `AnthropicOptions` and `BedrockOptions`, wiring it through to the Anthropic/Bedrock `thinking` config. Defaults to `"summarized"` so Claude Opus 4.7 and Mythos Preview keep returning thinking text; set it to `"omitted"` to skip thinking streaming for faster time-to-first-text-token.
### Changed
- Bumped `@anthropic-ai/sdk` to `0.90.0` so `ThinkingConfigAdaptive.display` and `ThinkingConfigEnabled.display` are typed by the SDK.
## [0.67.5] - 2026-04-16