mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-02-02 08:33:36 +00:00
feat: add reasoning effort support for Codex models
- Add ReasoningEffortSelector component for UI selection - Integrate reasoning effort in feature creation/editing dialogs - Add reasoning effort support to phase model selector - Update agent service and board actions to handle reasoning effort - Add reasoning effort fields to feature and settings types - Update model selector and agent info panel with reasoning effort display - Enhance agent context parser for reasoning effort processing Reasoning effort allows fine-tuned control over Codex model reasoning capabilities, providing options from 'none' to 'xhigh' for different task complexity requirements.
This commit is contained in:
@@ -38,12 +38,13 @@ export function formatModelName(model: string): string {
|
||||
if (model.includes('sonnet')) return 'Sonnet 4.5';
|
||||
if (model.includes('haiku')) return 'Haiku 4.5';
|
||||
|
||||
// Codex/GPT models
|
||||
// Codex/GPT models - specific formatting
|
||||
if (model === 'gpt-5.2-codex') return 'GPT-5.2 Codex';
|
||||
if (model === 'gpt-5.2') return 'GPT-5.2';
|
||||
if (model === 'gpt-5.1-codex-max') return 'GPT-5.1 Max';
|
||||
if (model === 'gpt-5.1-codex') return 'GPT-5.1 Codex';
|
||||
if (model === 'gpt-5.1-codex-mini') return 'GPT-5.1 Mini';
|
||||
if (model === 'gpt-5.1') return 'GPT-5.1';
|
||||
// Generic fallbacks for other GPT models
|
||||
if (model.startsWith('gpt-')) return model.toUpperCase();
|
||||
if (model.match(/^o\d/)) return model.toUpperCase(); // o1, o3, etc.
|
||||
|
||||
|
||||
@@ -9,13 +9,14 @@ export function cn(...inputs: ClassValue[]) {
|
||||
|
||||
/**
|
||||
* Determine if the current model supports extended thinking controls
|
||||
* Note: This is for Claude's "thinking levels" only, not Codex's "reasoning effort"
|
||||
*/
|
||||
export function modelSupportsThinking(_model?: ModelAlias | string): boolean {
|
||||
if (!_model) return true;
|
||||
|
||||
// Check if it's a Codex model with thinking support
|
||||
// Codex models don't support Claude thinking levels - they use reasoning effort instead
|
||||
if (_model.startsWith('gpt-') && _model in CODEX_MODEL_CONFIG_MAP) {
|
||||
return codexModelHasThinking(_model as any);
|
||||
return false;
|
||||
}
|
||||
|
||||
// All Claude models support thinking
|
||||
|
||||
Reference in New Issue
Block a user