chore: apply requested changes

This commit is contained in:
Ralph Khreish
2025-10-16 21:38:40 +02:00
parent 9923b4f486
commit 943356221c
3 changed files with 23 additions and 5 deletions

View File

@@ -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
}
],

View File

@@ -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

View File

@@ -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;