mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-02-01 20:23:36 +00:00
refactor: restrict model checks to gpt-* for OpenAI/Codex models
- Updated model resolution logic to only check for gpt-* models, removing references to unsupported o1/o3 models in both model-resolver and provider-factory files. - Enhanced comments for clarity regarding model support in Codex CLI.
This commit is contained in:
@@ -42,7 +42,8 @@ export function resolveModelString(
|
||||
}
|
||||
|
||||
// OpenAI/Codex models - pass through unchanged
|
||||
if (modelKey.startsWith("gpt-") || modelKey.startsWith("o")) {
|
||||
// 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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user