on main help sign in
fix: resolve the baseurl for anthropic
commit2c71f23ee458d0b6a885b42ff6ed3a90fedbd6f5 authorKujtim Hoxha <kujtimii.h@gmail.com> dateTue 26 Aug 2025, 10:29 (1 year ago) parent26ac24a
1 file changed+4−1
internal/llm/provider/anthropic.go+4−1
internal/llm/provider/anthropic.go+4−1
@@ -80,7 +80,10 @@ func createAnthropicClient(opts providerClientOptions, tp AnthropicClientType) a
8080 }
8181
8282 if opts.baseURL != "" {
83− anthropicClientOptions = append(anthropicClientOptions, option.WithBaseURL(opts.baseURL))
83+ resolvedBaseURL, err := config.Get().Resolve(opts.baseURL)
84+ if err == nil {
85+ anthropicClientOptions = append(anthropicClientOptions, option.WithBaseURL(resolvedBaseURL))
86+ }
8487 }
8588
8689 if config.Get().Options.Debug {