feat: remove codex support

This commit is contained in:
Kacper
2025-12-13 20:13:53 +01:00
parent 83fbf55781
commit 37f45ee89b
32 changed files with 925 additions and 7065 deletions

View File

@@ -3,7 +3,6 @@
*
* Provides centralized model resolution logic:
* - Maps Claude model aliases to full model strings
* - Detects and passes through OpenAI/Codex models
* - Provides default models per provider
* - Handles multiple model sources with priority
*/
@@ -22,7 +21,6 @@ export const CLAUDE_MODEL_MAP: Record<string, string> = {
*/
export const DEFAULT_MODELS = {
claude: "claude-opus-4-5-20251101",
openai: "gpt-5.2",
} as const;
/**
@@ -41,13 +39,6 @@ export function resolveModelString(
return defaultModel;
}
// OpenAI/Codex models - pass through unchanged
// Only check for gpt-* models (Codex CLI doesn't support o1/o3)
if (modelKey.startsWith("gpt-")) {
console.log(`[ModelResolver] Using OpenAI/Codex model: ${modelKey}`);
return modelKey;
}
// Full Claude model string - pass through unchanged
if (modelKey.includes("claude-")) {
console.log(`[ModelResolver] Using full Claude model string: ${modelKey}`);