Skip to content

Commit 1fb10cd

Browse files
authored
Merge pull request #610 from dgageot/anthropic-url
Honor the baseURL on anthropic
2 parents 9e05382 + a2bf282 commit 1fb10cd

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

pkg/model/provider/anthropic/client.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,9 @@ func NewClient(ctx context.Context, cfg *latest.ModelConfig, env environment.Pro
8989
requestOptions = append(requestOptions,
9090
option.WithAPIKey(authToken),
9191
)
92+
if cfg.BaseURL != "" {
93+
requestOptions = append(requestOptions, option.WithBaseURL(cfg.BaseURL))
94+
}
9295
} else {
9396
authToken := desktop.GetToken(ctx)
9497
if authToken == "" {

0 commit comments

Comments
 (0)