Skip to content

Commit 85edc09

Browse files
authored
Merge pull request #33 from datolabs-io/dependabot/go_modules/github.com/anthropics/anthropic-sdk-go-1.9.1
chore(deps): bump github.com/anthropics/anthropic-sdk-go from 0.2.0-beta.3 to 1.9.1
2 parents 1defe32 + 9153816 commit 85edc09

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed

go.mod

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module github.com/datolabs-io/opsy
33
go 1.24.0
44

55
require (
6-
github.com/anthropics/anthropic-sdk-go v0.2.0-beta.3
6+
github.com/anthropics/anthropic-sdk-go v1.9.1
77
github.com/charmbracelet/bubbles v0.21.0
88
github.com/charmbracelet/bubbletea v1.3.6
99
github.com/charmbracelet/lipgloss v1.1.0
@@ -51,7 +51,7 @@ require (
5151
github.com/tidwall/sjson v1.2.5 // indirect
5252
github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e // indirect
5353
go.uber.org/multierr v1.11.0 // indirect
54-
golang.org/x/sync v0.15.0 // indirect
55-
golang.org/x/sys v0.33.0 // indirect
56-
golang.org/x/text v0.22.0 // indirect
54+
golang.org/x/sync v0.16.0 // indirect
55+
golang.org/x/sys v0.34.0 // indirect
56+
golang.org/x/text v0.27.0 // indirect
5757
)

go.sum

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/agent/agent.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ func (a *Agent) Run(opts *tool.RunOptions, ctx context.Context) ([]tool.Output,
167167

168168
for {
169169
msg := anthropic.MessageNewParams{
170-
Model: a.cfg.Anthropic.Model,
170+
Model: anthropic.Model(a.cfg.Anthropic.Model),
171171
MaxTokens: a.cfg.Anthropic.MaxTokens,
172172
System: []anthropic.TextBlockParam{{Text: prompt}},
173173
Messages: messages,
@@ -177,7 +177,7 @@ func (a *Agent) Run(opts *tool.RunOptions, ctx context.Context) ([]tool.Output,
177177

178178
if len(opts.Tools) > 0 {
179179
msg.ToolChoice = anthropic.ToolChoiceUnionParam{
180-
OfToolChoiceAuto: &anthropic.ToolChoiceAutoParam{
180+
OfAuto: &anthropic.ToolChoiceAutoParam{
181181
DisableParallelToolUse: param.NewOpt(true),
182182
},
183183
}

0 commit comments

Comments
 (0)