diff --git a/go.mod b/go.mod index 2430403..a2a03ca 100644 --- a/go.mod +++ b/go.mod @@ -5,7 +5,7 @@ go 1.22 require ( github.com/go-telegram/bot v1.9.1 github.com/gofrs/uuid/v5 v5.3.0 - github.com/liushuangls/go-anthropic/v2 v2.8.1 + github.com/liushuangls/go-anthropic/v2 v2.8.2 github.com/rs/zerolog v1.33.0 github.com/spf13/viper v1.19.0 github.com/stretchr/testify v1.9.0 diff --git a/go.sum b/go.sum index ff2ce57..ac5acc1 100644 --- a/go.sum +++ b/go.sum @@ -20,8 +20,8 @@ github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= -github.com/liushuangls/go-anthropic/v2 v2.8.1 h1:pxFl88IgkG7e8Z1XwOYu48LcmEN0+6UdO58HF9altw0= -github.com/liushuangls/go-anthropic/v2 v2.8.1/go.mod h1:8BKv/fkeTaL5R9R9bGkaknYBueyw2WxY20o7bImbOek= +github.com/liushuangls/go-anthropic/v2 v2.8.2 h1:PbR9oQF3JDnU/hmbbQI+3tkCqNtdaw4K6S0YfzByl9I= +github.com/liushuangls/go-anthropic/v2 v2.8.2/go.mod h1:8BKv/fkeTaL5R9R9bGkaknYBueyw2WxY20o7bImbOek= github.com/magiconair/properties v1.8.7 h1:IeQXZAiQcpL9mgcAe1Nu6cX9LLw6ExEHKjN0VQdvPDY= github.com/magiconair/properties v1.8.7/go.mod h1:Dhd985XPs7jluiymwWYZ0G4Z61jb3vdS329zhj2hYo0= github.com/mattn/go-colorable v0.1.13 h1:fFA4WZxdEF4tXPZVKMLwD8oUnCTTo08duU7wxecdEvA= diff --git a/internal/adapters/generator/claude.go b/internal/adapters/generator/claude.go index b06b4d8..a04a295 100644 --- a/internal/adapters/generator/claude.go +++ b/internal/adapters/generator/claude.go @@ -39,7 +39,7 @@ func (c *ClaudeGenerator) GenerateFromPrompt(ctx context.Context, prompts []doma } resp, err := c.client.CreateMessages(ctx, anthropic.MessagesRequest{ - Model: anthropic.ModelClaude3Dot5Sonnet20240620, + Model: anthropic.ModelClaude3Dot5Sonnet20241022, System: c.systemPrompt, Messages: messages, MaxTokens: MaxTokens,