This commit is contained in:
@@ -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,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user