fix: Model flag parsing and model args (#42)

This commit is contained in:
Devansh Jain
2025-10-30 20:23:21 -07:00
committed by GitHub
parent 77d78c22da
commit 32a3f7c7ab
7 changed files with 106 additions and 60 deletions

View File

@@ -5,21 +5,21 @@
"label": "Claude Sonnet 4.5 (default)",
"description": "The recommended default model (currently Sonnet 4.5)",
"isDefault": true,
"updateArgs": { "contextWindow": 180000 }
"updateArgs": { "context_window": 180000 }
},
{
"id": "opus",
"handle": "anthropic/claude-opus-4-1-20250805",
"label": "Claude Opus 4.1",
"description": "Anthropic's smartest (and slowest) model",
"updateArgs": { "contextWindow": 180000 }
"updateArgs": { "context_window": 180000 }
},
{
"id": "haiku",
"handle": "anthropic/claude-haiku-4-5-20251001",
"label": "Claude Haiku 4.5",
"description": "Anthropic's fastest model",
"updateArgs": { "contextWindow": 180000 }
"updateArgs": { "context_window": 180000 }
},
{
"id": "gpt-5-codex",
@@ -27,9 +27,9 @@
"label": "GPT-5-Codex",
"description": "A variant of GPT-5 optimized for agentic coding",
"updateArgs": {
"reasoningEffort": "medium",
"reasoning_effort": "medium",
"verbosity": "medium",
"contextWindow": 272000
"context_window": 272000
}
},
{
@@ -38,7 +38,7 @@
"label": "GLM-4.6",
"description": "The best open weights coding model",
"updateArgs": {
"contextWindow": 200000
"context_window": 200000
}
},
{
@@ -47,9 +47,9 @@
"label": "GPT-5 (minimal)",
"description": "OpenAI's latest model (limited reasoning, fastest GPT-5 option)",
"updateArgs": {
"reasoningEffort": "minimal",
"reasoning_effort": "minimal",
"verbosity": "medium",
"contextWindow": 272000
"context_window": 272000
}
},
{
@@ -58,9 +58,9 @@
"label": "GPT-5 (low)",
"description": "OpenAI's latest model (some reasoning enabled)",
"updateArgs": {
"reasoningEffort": "low",
"reasoning_effort": "low",
"verbosity": "medium",
"contextWindow": 272000
"context_window": 272000
}
},
{
@@ -69,9 +69,9 @@
"label": "GPT-5 (medium)",
"description": "OpenAI's latest model (using their recommended reasoning level)",
"updateArgs": {
"reasoningEffort": "medium",
"reasoning_effort": "medium",
"verbosity": "medium",
"contextWindow": 272000
"context_window": 272000
}
},
{
@@ -80,9 +80,9 @@
"label": "GPT-5 (high)",
"description": "OpenAI's latest model (maximum reasoning depth)",
"updateArgs": {
"reasoningEffort": "high",
"reasoning_effort": "high",
"verbosity": "medium",
"contextWindow": 272000
"context_window": 272000
}
},
{
@@ -90,27 +90,27 @@
"handle": "google_ai/gemini-2.5-flash",
"label": "Gemini 2.5 Flash",
"description": "Google's fastest model",
"updateArgs": { "contextWindow": 180000 }
"updateArgs": { "context_window": 180000 }
},
{
"id": "gemini-pro",
"handle": "google_ai/gemini-2.5-pro",
"label": "Gemini 2.5 Pro",
"description": "Google's smartest model",
"updateArgs": { "contextWindow": 180000 }
"updateArgs": { "context_window": 180000 }
},
{
"id": "gpt-4.1",
"handle": "openai/gpt-4.1",
"label": "GPT-4.1",
"description": "OpenAI's most recent non-reasoner model",
"updateArgs": { "contextWindow": 180000 }
"updateArgs": { "context_window": 180000 }
},
{
"id": "o4-mini",
"handle": "openai/o4-mini",
"label": "o4-mini",
"description": "OpenAI's latest o-series reasoning model",
"updateArgs": { "contextWindow": 180000 }
"updateArgs": { "context_window": 180000 }
}
]