chore: apply requested changes
This commit is contained in:
@@ -52,18 +52,18 @@
|
|||||||
"output": 15.0
|
"output": 15.0
|
||||||
},
|
},
|
||||||
"allowed_roles": ["main", "fallback"],
|
"allowed_roles": ["main", "fallback"],
|
||||||
"max_tokens": 8192,
|
"max_tokens": 64000,
|
||||||
"supported": true
|
"supported": true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "claude-haiku-4-5-20251001",
|
"id": "claude-haiku-4-5-20251001",
|
||||||
"swe_score": 0.45,
|
"swe_score": 0.45,
|
||||||
"cost_per_1m_tokens": {
|
"cost_per_1m_tokens": {
|
||||||
"input": 0.8,
|
"input": 1.0,
|
||||||
"output": 4.0
|
"output": 5.0
|
||||||
},
|
},
|
||||||
"allowed_roles": ["main", "fallback"],
|
"allowed_roles": ["main", "fallback"],
|
||||||
"max_tokens": 8192,
|
"max_tokens": 200000,
|
||||||
"supported": true
|
"supported": true
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@@ -98,7 +98,7 @@
|
|||||||
"output": 0
|
"output": 0
|
||||||
},
|
},
|
||||||
"allowed_roles": ["main", "fallback", "research"],
|
"allowed_roles": ["main", "fallback", "research"],
|
||||||
"max_tokens": 8192,
|
"max_tokens": 200000,
|
||||||
"supported": true
|
"supported": true
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -36,6 +36,15 @@ export class ClaudeCodeProvider extends BaseAIProvider {
|
|||||||
this.name = 'Claude Code';
|
this.name = 'Claude Code';
|
||||||
// Load supported models from supported-models.json
|
// Load supported models from supported-models.json
|
||||||
this.supportedModels = getSupportedModelsForProvider('claude-code');
|
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
|
// Claude Code requires explicit JSON schema mode
|
||||||
this.needsExplicitJsonSchema = true;
|
this.needsExplicitJsonSchema = true;
|
||||||
// Claude Code does not support temperature parameter
|
// Claude Code does not support temperature parameter
|
||||||
|
|||||||
@@ -25,6 +25,15 @@ export class CodexCliProvider extends BaseAIProvider {
|
|||||||
this.supportsTemperature = false;
|
this.supportsTemperature = false;
|
||||||
// Load supported models from supported-models.json
|
// Load supported models from supported-models.json
|
||||||
this.supportedModels = getSupportedModelsForProvider('codex-cli');
|
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
|
// CLI availability check cache
|
||||||
this._codexCliChecked = false;
|
this._codexCliChecked = false;
|
||||||
this._codexCliAvailable = null;
|
this._codexCliAvailable = null;
|
||||||
|
|||||||
Reference in New Issue
Block a user