diff --git a/agent/llm/providers/anthropic/anthropic_test.go b/agent/llm/providers/anthropic/anthropic_test.go index d98dbd33..64551f5a 100644 --- a/agent/llm/providers/anthropic/anthropic_test.go +++ b/agent/llm/providers/anthropic/anthropic_test.go @@ -16,7 +16,7 @@ import ( "github.com/yaoapp/yao/test" ) -// testConnectorID uses the cheapest model (Claude Haiku 3) to save tokens +// testConnectorID uses the cheapest model (Claude Haiku 3.5) to save tokens const testConnectorID = "claude.haiku-3_0" // TestAnthropicStreamBasic tests basic streaming completion with Anthropic API @@ -214,7 +214,7 @@ func TestAnthropicStreamRetry(t *testing.T) { connDSL := `{ "type": "anthropic", "options": { - "model": "claude-3-haiku-20240307", + "model": "claude-3-5-haiku-20241022", "key": "sk-ant-invalid-key-should-fail" } }` diff --git a/go.mod b/go.mod index 406475c4..ee97e235 100644 --- a/go.mod +++ b/go.mod @@ -147,7 +147,7 @@ require ( github.com/mattn/go-sqlite3 v1.14.28 // indirect github.com/miekg/dns v1.1.66 // indirect github.com/moby/docker-image-spec v1.3.1 // indirect - github.com/moby/spdystream v0.5.0 // indirect + github.com/moby/spdystream v0.5.1 // indirect github.com/moby/sys/atomicwriter v0.1.0 // indirect github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect github.com/modern-go/reflect2 v1.0.3-0.20250322232337-35a7c28c31ee // indirect diff --git a/go.sum b/go.sum index 8eb4a57e..f68df45e 100644 --- a/go.sum +++ b/go.sum @@ -299,8 +299,8 @@ github.com/miekg/dns v1.1.66 h1:FeZXOS3VCVsKnEAd+wBkjMC3D2K+ww66Cq3VnCINuJE= github.com/miekg/dns v1.1.66/go.mod h1:jGFzBsSNbJw6z1HYut1RKBKHA9PBdxeHrZG8J+gC2WE= github.com/moby/docker-image-spec v1.3.1 h1:jMKff3w6PgbfSa69GfNg+zN/XLhfXJGnEx3Nl2EsFP0= github.com/moby/docker-image-spec v1.3.1/go.mod h1:eKmb5VW8vQEh/BAr2yvVNvuiJuY6UIocYsFu/DxxRpo= -github.com/moby/spdystream v0.5.0 h1:7r0J1Si3QO/kjRitvSLVVFUjxMEb/YLj6S9FF62JBCU= -github.com/moby/spdystream v0.5.0/go.mod h1:xBAYlnt/ay+11ShkdFKNAG7LsyK/tmNBVvVOwrfMgdI= +github.com/moby/spdystream v0.5.1 h1:9sNYeYZUcci9R6/w7KDaFWEWeV4LStVG78Mpyq/Zm/Y= +github.com/moby/spdystream v0.5.1/go.mod h1:xBAYlnt/ay+11ShkdFKNAG7LsyK/tmNBVvVOwrfMgdI= github.com/moby/sys/atomicwriter v0.1.0 h1:kw5D/EqkBwsBFi0ss9v1VG3wIkVhzGvLklJ+w3A14Sw= github.com/moby/sys/atomicwriter v0.1.0/go.mod h1:Ul8oqv2ZMNHOceF643P6FKPXeCmYtlQMvpizfsSoaWs= github.com/moby/sys/sequential v0.6.0 h1:qrx7XFUd/5DxtqcoH1h438hF5TmOvzC/lspjy7zgvCU=