From 943356221c0275eebac05f1ceadd0a573eff979d Mon Sep 17 00:00:00 2001 From: Ralph Khreish <35776126+Crunchyman-ralph@users.noreply.github.com> Date: Thu, 16 Oct 2025 21:38:40 +0200 Subject: [PATCH] chore: apply requested changes --- scripts/modules/supported-models.json | 10 +++++----- src/ai-providers/claude-code.js | 9 +++++++++ src/ai-providers/codex-cli.js | 9 +++++++++ 3 files changed, 23 insertions(+), 5 deletions(-) diff --git a/scripts/modules/supported-models.json b/scripts/modules/supported-models.json index 04ebec1e..60d56a87 100644 --- a/scripts/modules/supported-models.json +++ b/scripts/modules/supported-models.json @@ -52,18 +52,18 @@ "output": 15.0 }, "allowed_roles": ["main", "fallback"], - "max_tokens": 8192, + "max_tokens": 64000, "supported": true }, { "id": "claude-haiku-4-5-20251001", "swe_score": 0.45, "cost_per_1m_tokens": { - "input": 0.8, - "output": 4.0 + "input": 1.0, + "output": 5.0 }, "allowed_roles": ["main", "fallback"], - "max_tokens": 8192, + "max_tokens": 200000, "supported": true } ], @@ -98,7 +98,7 @@ "output": 0 }, "allowed_roles": ["main", "fallback", "research"], - "max_tokens": 8192, + "max_tokens": 200000, "supported": true } ], diff --git a/src/ai-providers/claude-code.js b/src/ai-providers/claude-code.js index 2a2a77d3..19146cc6 100644 --- a/src/ai-providers/claude-code.js +++ b/src/ai-providers/claude-code.js @@ -36,6 +36,15 @@ export class ClaudeCodeProvider extends BaseAIProvider { this.name = 'Claude Code'; // Load supported models from supported-models.json this.supportedModels = getSupportedModelsForProvider('claude-code'); + + // Validate that models were loaded successfully + if (this.supportedModels.length === 0) { + log( + 'warn', + 'No supported models found for claude-code provider. Check supported-models.json configuration.' + ); + } + // Claude Code requires explicit JSON schema mode this.needsExplicitJsonSchema = true; // Claude Code does not support temperature parameter diff --git a/src/ai-providers/codex-cli.js b/src/ai-providers/codex-cli.js index 5a95c55b..c9e082e6 100644 --- a/src/ai-providers/codex-cli.js +++ b/src/ai-providers/codex-cli.js @@ -25,6 +25,15 @@ export class CodexCliProvider extends BaseAIProvider { this.supportsTemperature = false; // Load supported models from supported-models.json this.supportedModels = getSupportedModelsForProvider('codex-cli'); + + // Validate that models were loaded successfully + if (this.supportedModels.length === 0) { + log( + 'warn', + 'No supported models found for codex-cli provider. Check supported-models.json configuration.' + ); + } + // CLI availability check cache this._codexCliChecked = false; this._codexCliAvailable = null;