feat(bedrock): add WithBaseURL option
Aleks Clark
created 2 weeks ago
Allows overriding the default Bedrock endpoint URL, enabling use with
custom or proxy endpoints.
🐙 Generated with Crush
Assisted-by: AWS Claude Opus 4.6 via Crush <crush@charm.land>
Change summary
providers/bedrock/bedrock.go | 7 +++++++
1 file changed, 7 insertions(+)
Detailed changes
@@ -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) {