feat(cloud): support Anthropic provider base URL
Tests / Test passed: 665

This commit is contained in:
2026-07-14 07:58:38 +08:00
parent 8b7e5a2800
commit 9250254dec
13 changed files with 124 additions and 39 deletions
@@ -96,10 +96,6 @@ def validate_profile_input(
"Timeout must be greater than zero and at most 120"
)
normalized_base_url = _normalize_base_url(base_url)
if provider_type == "anthropic" and normalized_base_url is not None:
raise LlmProviderValidationError(
"Anthropic profiles do not support a custom base URL"
)
return LlmProviderProfileInput(
name=display_name,
name_normalized=normalized_name,
@@ -21,4 +21,8 @@ def build_cloud_planner_client(
api_key=resolved.api_key,
base_url=profile.base_url,
)
return AnthropicToolCallingClient(model=profile.model, api_key=resolved.api_key)
return AnthropicToolCallingClient(
model=profile.model,
api_key=resolved.api_key,
base_url=profile.base_url,
)