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
@@ -40,6 +40,15 @@ def test_build_cloud_planner_client_uses_managed_anthropic_key() -> None:
assert client._api_key == "managed-api-key"
def test_build_cloud_planner_client_uses_anthropic_base_url() -> None:
client = build_cloud_planner_client(
_resolved_profile("anthropic", base_url="https://anthropic-proxy.example")
)
assert isinstance(client, AnthropicToolCallingClient)
assert client._base_url == "https://anthropic-proxy.example"
def test_build_cloud_planner_client_uses_openai_compatible_base_url() -> None:
client = build_cloud_planner_client(
_resolved_profile("openai-compatible", base_url="https://compat.example/v1")