diff --git a/providers/bedrock/bedrock.go b/providers/bedrock/bedrock.go index c8889398cfce102499dc030a8af0d7528ed83042..a430314e2e3caadf64f7244f6caaf6bfca72c0ca 100644 --- a/providers/bedrock/bedrock.go +++ b/providers/bedrock/bedrock.go @@ -65,6 +65,13 @@ func WithUserAgent(ua string) Option { } } +// WithBaseURL sets the base URL for the Bedrock provider. +func WithBaseURL(baseURL string) Option { + return func(o *options) { + o.anthropicOptions = append(o.anthropicOptions, anthropic.WithBaseURL(baseURL)) + } +} + // WithSkipAuth configures whether to skip authentication for the Bedrock provider. func WithSkipAuth(skipAuth bool) Option { return func(o *options) {