Skip to content

Commit cef8c56

Browse files
authored
Merge pull request #1783 from ksylvan/kayvan/feat/0930-claude-4-5
Update anthropic-sdk-go and add claude-sonnet-4-5
2 parents 6eee447 + 94e8d69 commit cef8c56

File tree

4 files changed

+10
-1
lines changed

4 files changed

+10
-1
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
### 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
2+
3+
- Feat: update `anthropic-sdk-go` to v1.13.0 and add new model
4+
- Upgrade `anthropic-sdk-go` to version 1.13.0
5+
- Add `ModelClaudeSonnet4_5` to supported models list

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module github.com/danielmiessler/fabric
33
go 1.25.1
44

55
require (
6-
github.com/anthropics/anthropic-sdk-go v1.12.0
6+
github.com/anthropics/anthropic-sdk-go v1.13.0
77
github.com/atotto/clipboard v0.1.4
88
github.com/aws/aws-sdk-go-v2 v1.39.0
99
github.com/aws/aws-sdk-go-v2/config v1.31.8

go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ github.com/anmitsu/go-shlex v0.0.0-20200514113438-38f4b401e2be h1:9AeTilPcZAjCFI
2929
github.com/anmitsu/go-shlex v0.0.0-20200514113438-38f4b401e2be/go.mod h1:ySMOLuWl6zY27l47sB3qLNK6tF2fkHG55UZxx8oIVo4=
3030
github.com/anthropics/anthropic-sdk-go v1.12.0 h1:xPqlGnq7rWrTiHazIvCiumA0u7mGQnwDQtvA1M82h9U=
3131
github.com/anthropics/anthropic-sdk-go v1.12.0/go.mod h1:WTz31rIUHUHqai2UslPpw5CwXrQP3geYBioRV4WOLvE=
32+
github.com/anthropics/anthropic-sdk-go v1.13.0 h1:Bhbe8sRoDPtipttg8bQYrMCKe2b79+q6rFW1vOKEUKI=
33+
github.com/anthropics/anthropic-sdk-go v1.13.0/go.mod h1:WTz31rIUHUHqai2UslPpw5CwXrQP3geYBioRV4WOLvE=
3234
github.com/araddon/dateparse v0.0.0-20210429162001-6b43995a97de h1:FxWPpzIjnTlhPwqqXc4/vE0f7GvRjuAsbW+HOIe8KnA=
3335
github.com/araddon/dateparse v0.0.0-20210429162001-6b43995a97de/go.mod h1:DCaWoUhZrYW9p1lxo/cm8EmUOOzAPSEZNGF2DK1dJgw=
3436
github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5 h1:0CwZNZbxp69SHPdPJAN/hZIm0C4OItdklCFmMRWYpio=

internal/plugins/ai/anthropic/anthropic.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,12 @@ func NewClient() (ret *Client) {
4949
string(anthropic.ModelClaude_3_Opus_20240229), string(anthropic.ModelClaude_3_Haiku_20240307),
5050
string(anthropic.ModelClaudeOpus4_20250514), string(anthropic.ModelClaudeSonnet4_20250514),
5151
string(anthropic.ModelClaudeOpus4_1_20250805),
52+
string(anthropic.ModelClaudeSonnet4_5),
5253
}
5354

5455
ret.modelBetas = map[string][]string{
5556
string(anthropic.ModelClaudeSonnet4_20250514): {"context-1m-2025-08-07"},
57+
string(anthropic.ModelClaudeSonnet4_5): {"context-1m-2025-08-07"},
5658
}
5759

5860
return

0 commit comments

Comments
 (0)