fix: fix web search tool location

This commit is contained in:
Eugen Eisler
2025-06-11 22:19:21 +02:00
parent 2b11f3e48e
commit 9d4f7f1571
2 changed files with 2 additions and 2 deletions

View File

@@ -137,7 +137,7 @@ func (an *Client) buildMessageParams(msgs []anthropic.MessageParam, opts *common
// MaxUses: anthropic.Opt[int64](5),
}
if an.WebToolLocation.Value == "" {
if an.WebToolLocation.Value != "" {
webTool.UserLocation.Type = "approximate"
webTool.UserLocation.Timezone = anthropic.Opt(an.WebToolLocation.Value)
}