You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add custom base URL support for Anthropic provider (#12718)
## Summary
Addresses #8007
Adds custom base URL support for Anthropic.
- Adds a Base URL input field to the Configure Language Model Providers
modal
- Supports both the native Anthropic SDK provider and the Vercel AI SDK
provider
- Supports `ANTHROPIC_BASE_URL` environment variable for automatic
configuration
- Handles URL normalization for both SDK flavors (native SDK omits
`/v1`, Vercel SDK requires it)
- Relaxes API key format validation when a custom base URL is set
- Treats 404 from `/v1/models` as a successful connection for custom
endpoints that don't expose model listing
- Updates the auth extension's Anthropic key validator to use the
configured base URL
- Migrates Anthropic env variable authentication from Assistant to the
Authentication extension.
@:assistant
"configuration.aws.credentials.description": "Variables used to configure AWS credentials.\n\nExample: to set the AWS region and profile, add items with keys `AWS_REGION` and `AWS_PROFILE`.",
3
3
"configuration.aws.inferenceProfileRegion.description": "Override the inference profile region for AWS services.\n\nBy default, the inference profile region is derived from `AWS_REGION` (e.g., 'us-east-1' -> 'us'). Use this setting to explicitly specify a different region.\n\nExamples: 'global', 'us', 'eu', 'apac'.",
4
+
"configuration.anthropic.baseUrl.description": "Custom Anthropic API base URL. Overrides the default https://api.anthropic.com endpoint. Also set automatically from the ANTHROPIC_BASE_URL environment variable.",
0 commit comments