@@ -44,6 +44,7 @@ def is_valid_model_id(model_id: str) -> bool:
4444 Accepts:
4545 • anthropic/<model>
4646 • openai/<model>
47+ • azure/<model>
4748 • <org>/<model>[:<tag>] (HF router; tag = provider or policy)
4849 • huggingface/<org>/<model>[:<tag>] (same, accepts legacy prefix)
4950
@@ -63,10 +64,10 @@ def _print_hf_routing_info(model_id: str, console) -> bool:
6364 proceed with the switch, ``False`` to indicate a hard problem the user
6465 should notice before we fire the effort probe.
6566
66- Anthropic / OpenAI ids return ``True`` without printing anything —
67+ Anthropic / OpenAI / Azure ids return ``True`` without printing anything —
6768 the probe below covers "does this model exist".
6869 """
69- if model_id .startswith (("anthropic/" , "openai/" )):
70+ if model_id .startswith (("anthropic/" , "openai/" , "azure/" )):
7071 return True
7172
7273 from agent .core import hf_router_catalog as cat
@@ -139,7 +140,7 @@ def print_model_listing(config, console) -> None:
139140 console .print (
140141 "\n [dim]Paste any HF model id (e.g. 'MiniMaxAI/MiniMax-M2.7').\n "
141142 "Add ':fastest', ':cheapest', ':preferred', or ':<provider>' to override routing.\n "
142- "Use 'anthropic/<model>' or 'openai /<model>' for direct API access.[/dim]"
143+ "Use 'anthropic/<model>', 'openai/<model>', or 'azure /<model>' for direct API access.[/dim]"
143144 )
144145
145146
@@ -149,7 +150,8 @@ def print_invalid_id(arg: str, console) -> None:
149150 "[dim]Expected:\n "
150151 " • <org>/<model>[:tag] (HF router — paste from huggingface.co)\n "
151152 " • anthropic/<model>\n "
152- " • openai/<model>[/dim]"
153+ " • openai/<model>\n "
154+ " • azure/<model>[/dim]"
153155 )
154156
155157
0 commit comments