agentcode-cli 1.1.0__tar.gz → 1.2.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {agentcode_cli-1.1.0/agentcode_cli.egg-info → agentcode_cli-1.2.0}/PKG-INFO +1 -1
- {agentcode_cli-1.1.0 → agentcode_cli-1.2.0/agentcode_cli.egg-info}/PKG-INFO +1 -1
- {agentcode_cli-1.1.0 → agentcode_cli-1.2.0}/pyproject.toml +1 -1
- {agentcode_cli-1.1.0 → agentcode_cli-1.2.0}/router.py +12 -1
- {agentcode_cli-1.1.0 → agentcode_cli-1.2.0}/LICENSE +0 -0
- {agentcode_cli-1.1.0 → agentcode_cli-1.2.0}/README.md +0 -0
- {agentcode_cli-1.1.0 → agentcode_cli-1.2.0}/agent.py +0 -0
- {agentcode_cli-1.1.0 → agentcode_cli-1.2.0}/agentcode_cli.egg-info/SOURCES.txt +0 -0
- {agentcode_cli-1.1.0 → agentcode_cli-1.2.0}/agentcode_cli.egg-info/dependency_links.txt +0 -0
- {agentcode_cli-1.1.0 → agentcode_cli-1.2.0}/agentcode_cli.egg-info/entry_points.txt +0 -0
- {agentcode_cli-1.1.0 → agentcode_cli-1.2.0}/agentcode_cli.egg-info/requires.txt +0 -0
- {agentcode_cli-1.1.0 → agentcode_cli-1.2.0}/agentcode_cli.egg-info/top_level.txt +0 -0
- {agentcode_cli-1.1.0 → agentcode_cli-1.2.0}/cli.py +0 -0
- {agentcode_cli-1.1.0 → agentcode_cli-1.2.0}/mcp_client.py +0 -0
- {agentcode_cli-1.1.0 → agentcode_cli-1.2.0}/server.py +0 -0
- {agentcode_cli-1.1.0 → agentcode_cli-1.2.0}/settings.py +0 -0
- {agentcode_cli-1.1.0 → agentcode_cli-1.2.0}/setup.cfg +0 -0
- {agentcode_cli-1.1.0 → agentcode_cli-1.2.0}/tools.py +0 -0
|
@@ -47,11 +47,20 @@ GEMINI_TIERS = [
|
|
|
47
47
|
ModelTier("gemini/gemini-2.5-pro", "heavy", "Gemini 2.5 Pro", 1.25, 10.00),
|
|
48
48
|
]
|
|
49
49
|
|
|
50
|
+
# Azure deployment names are user-defined, so tiers use common defaults.
|
|
51
|
+
# Users can override via settings.json model.light/medium/heavy.
|
|
52
|
+
AZURE_TIERS = [
|
|
53
|
+
ModelTier("azure/gpt-4o-mini", "light", "Azure GPT-4o Mini", 0.15, 0.60),
|
|
54
|
+
ModelTier("azure/gpt-4o", "medium", "Azure GPT-4o", 2.50, 10.00),
|
|
55
|
+
ModelTier("azure/gpt-4o", "heavy", "Azure GPT-4o", 2.50, 10.00),
|
|
56
|
+
]
|
|
57
|
+
|
|
50
58
|
# Provider configs keyed by prefix
|
|
51
59
|
PROVIDER_TIERS = {
|
|
52
60
|
"anthropic": ANTHROPIC_TIERS,
|
|
53
61
|
"openai": OPENAI_TIERS,
|
|
54
62
|
"gemini": GEMINI_TIERS,
|
|
63
|
+
"azure": AZURE_TIERS,
|
|
55
64
|
}
|
|
56
65
|
|
|
57
66
|
|
|
@@ -203,7 +212,9 @@ class ModelRouter:
|
|
|
203
212
|
def detect_provider(self, model_string: str) -> str:
|
|
204
213
|
"""Detect provider from a model string."""
|
|
205
214
|
m = model_string.lower()
|
|
206
|
-
if
|
|
215
|
+
if m.startswith("azure/"):
|
|
216
|
+
return "azure"
|
|
217
|
+
elif "claude" in m or "anthropic" in m:
|
|
207
218
|
return "anthropic"
|
|
208
219
|
elif "gpt" in m or "openai" in m or "o1" in m or "o3" in m:
|
|
209
220
|
return "openai"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|