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

@@ -159,7 +159,7 @@ func Init() (ret *Flags, err error) {
// Handle stdin and messages
// Handle stdin and messages
info, _ := os.Stdin.Stat()
pipedToStdin := (info.Mode()&os.ModeCharDevice) == 0 && !debug
pipedToStdin := (info.Mode() & os.ModeCharDevice) == 0
// Append positional arguments to the message (custom message)
if len(args) > 0 {

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)
}