diff --git a/cmd/generate_changelog/incoming/1783.txt b/cmd/generate_changelog/incoming/1783.txt new file mode 100644 index 00000000..a05f1976 --- /dev/null +++ b/cmd/generate_changelog/incoming/1783.txt @@ -0,0 +1,5 @@ +### PR [#1783](https://github.com/danielmiessler/Fabric/pull/1783) by [ksylvan](https://github.com/ksylvan): Update anthropic-sdk-go and add claude-sonnet-4-5 + +- Feat: update `anthropic-sdk-go` to v1.13.0 and add new model +- Upgrade `anthropic-sdk-go` to version 1.13.0 +- Add `ModelClaudeSonnet4_5` to supported models list diff --git a/go.mod b/go.mod index 69eef36f..d624b4f7 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,7 @@ module github.com/danielmiessler/fabric go 1.25.1 require ( - github.com/anthropics/anthropic-sdk-go v1.12.0 + github.com/anthropics/anthropic-sdk-go v1.13.0 github.com/atotto/clipboard v0.1.4 github.com/aws/aws-sdk-go-v2 v1.39.0 github.com/aws/aws-sdk-go-v2/config v1.31.8 diff --git a/go.sum b/go.sum index 02780b4a..31c8ce0a 100644 --- a/go.sum +++ b/go.sum @@ -29,6 +29,8 @@ github.com/anmitsu/go-shlex v0.0.0-20200514113438-38f4b401e2be h1:9AeTilPcZAjCFI github.com/anmitsu/go-shlex v0.0.0-20200514113438-38f4b401e2be/go.mod h1:ySMOLuWl6zY27l47sB3qLNK6tF2fkHG55UZxx8oIVo4= github.com/anthropics/anthropic-sdk-go v1.12.0 h1:xPqlGnq7rWrTiHazIvCiumA0u7mGQnwDQtvA1M82h9U= github.com/anthropics/anthropic-sdk-go v1.12.0/go.mod h1:WTz31rIUHUHqai2UslPpw5CwXrQP3geYBioRV4WOLvE= +github.com/anthropics/anthropic-sdk-go v1.13.0 h1:Bhbe8sRoDPtipttg8bQYrMCKe2b79+q6rFW1vOKEUKI= +github.com/anthropics/anthropic-sdk-go v1.13.0/go.mod h1:WTz31rIUHUHqai2UslPpw5CwXrQP3geYBioRV4WOLvE= github.com/araddon/dateparse v0.0.0-20210429162001-6b43995a97de h1:FxWPpzIjnTlhPwqqXc4/vE0f7GvRjuAsbW+HOIe8KnA= github.com/araddon/dateparse v0.0.0-20210429162001-6b43995a97de/go.mod h1:DCaWoUhZrYW9p1lxo/cm8EmUOOzAPSEZNGF2DK1dJgw= github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5 h1:0CwZNZbxp69SHPdPJAN/hZIm0C4OItdklCFmMRWYpio= diff --git a/internal/plugins/ai/anthropic/anthropic.go b/internal/plugins/ai/anthropic/anthropic.go index 674d919c..07d5535e 100644 --- a/internal/plugins/ai/anthropic/anthropic.go +++ b/internal/plugins/ai/anthropic/anthropic.go @@ -49,10 +49,12 @@ func NewClient() (ret *Client) { string(anthropic.ModelClaude_3_Opus_20240229), string(anthropic.ModelClaude_3_Haiku_20240307), string(anthropic.ModelClaudeOpus4_20250514), string(anthropic.ModelClaudeSonnet4_20250514), string(anthropic.ModelClaudeOpus4_1_20250805), + string(anthropic.ModelClaudeSonnet4_5), } ret.modelBetas = map[string][]string{ string(anthropic.ModelClaudeSonnet4_20250514): {"context-1m-2025-08-07"}, + string(anthropic.ModelClaudeSonnet4_5): {"context-1m-2025-08-07"}, } return