on main help sign in
fix: resolve the baseurl for anthropic
2c71f23Kujtim Hoxha
internal/llm/provider/anthropic.go+4−1
@@ -80,7 +80,10 @@ func createAnthropicClient(opts providerClientOptions, tp AnthropicClientType) a
80 }
80 }
81
81
82 if opts.baseURL != "" {
82 if opts.baseURL != "" {
83+ resolvedBaseURL, err := config.Get().Resolve(opts.baseURL)
84+ if err == nil {
83− anthropicClientOptions = append(anthropicClientOptions, option.WithBaseURL(opts.baseURL))
85+ anthropicClientOptions = append(anthropicClientOptions, option.WithBaseURL(resolvedBaseURL))
86+ }
84 }
87 }
85
88
86 if config.Get().Options.Debug {
89 if config.Get().Options.Debug {