Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/ucode/databricks.py
Original file line number Diff line number Diff line change
Expand Up @@ -2024,12 +2024,14 @@ def build_skills_mcp_url(workspace: str, locations: list[str]) -> str:
# Maps the gateway routing dialect a coding tool speaks to the Model Provider
# Service `provider_type`s it can be backed by. claude speaks Anthropic's API,
# which both the `anthropic` and `amazon_bedrock` provider types serve (Bedrock
# just exposes different model ids); codex speaks OpenAI's; gemini speaks
# just exposes different model ids); codex speaks OpenAI's, which the `openai`,
# `azure_openai`, and `microsoft_foundry` provider types all serve (the gateway
# fronts Azure OpenAI and Foundry with the OpenAI surface); gemini speaks
# Google's, served by a Gemini Enterprise provider. Tags are the short form
# produced by `_provider_type_tag` (e.g. `amazon_bedrock`).
_TOOL_PROVIDER_TYPES: dict[str, tuple[str, ...]] = {
"claude": ("anthropic", "amazon_bedrock"),
"codex": ("openai",),
"codex": ("openai", "azure_openai", "microsoft_foundry"),
"gemini": ("gemini_enterprise",),
}

Expand Down
4 changes: 3 additions & 1 deletion tests/test_managed_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,8 +361,10 @@ def test_claude_supports_anthropic_and_bedrock(self):
assert supports_provider_service("claude", "anthropic")
assert supports_provider_service("claude", "amazon_bedrock")

def test_codex_supports_openai(self):
def test_codex_supports_openai_azure_and_foundry(self):
assert supports_provider_service("codex", "openai")
assert supports_provider_service("codex", "azure_openai")
assert supports_provider_service("codex", "microsoft_foundry")

def test_claude_does_not_support_openai(self):
assert not supports_provider_service("claude", "openai")
Expand Down
Loading