chore: update Anthropic SDK to v0.2.0-beta.3 and migrate to V2 API

## CHANGES

- Upgrade Anthropic SDK from alpha.11 to beta.3
- Update API endpoint from v1 to v2
- Replace anthropic.F() with direct assignment
- Replace anthropic.F() with anthropic.Opt() for optional params
- Simplify event delta handling in streaming
- Change client type from pointer to value type
- Update comment with SDK changelog reference
This commit is contained in:
Kayvan Sylvan
2025-04-21 13:17:03 -07:00
parent ba2e178e03
commit 892439a177
3 changed files with 22 additions and 22 deletions

2
go.mod
View File

@@ -4,7 +4,7 @@ go 1.23.4
require (
github.com/anaskhan96/soup v1.2.5
github.com/anthropics/anthropic-sdk-go v0.2.0-alpha.11
github.com/anthropics/anthropic-sdk-go v0.2.0-beta.3
github.com/atotto/clipboard v0.1.4
github.com/gabriel-vasile/mimetype v1.4.8
github.com/gin-gonic/gin v1.10.0