refactor: upgrade Anthropic SDK to v1.4.0 and adapt provider code

### CHANGES

- Upgrade Anthropic Go SDK dependency to version 1.4.0.
- Adapt provider code to breaking changes in the SDK.
- Update constructors for tool use and thinking parameters.
- Use new `OfText` field for accessing message content.
- Add Claude 4 Opus and Sonnet to documentation.
This commit is contained in:
Kayvan Sylvan
2025-06-05 10:46:14 -07:00
committed by Kujtim Hoxha
parent 18f020cacd
commit 05b0570f48
5 changed files with 12 additions and 15 deletions

View File

@@ -203,6 +203,8 @@ OpenCode supports a variety of AI models from different providers:
### Anthropic
- Claude 4 Sonnet
- Claude 4 Opus
- Claude 3.5 Sonnet
- Claude 3.5 Haiku
- Claude 3.7 Sonnet