Skip to content

Commit c8d9439

Browse files
authored
Return REASONING_VARIANTS_LOW_MEDIUM_HIGH for step model (#3588)
* Return REASONING_VARIANTS_LOW_MEDIUM_HIGH for step model * Add import for isStepModel in model-settings.ts
1 parent d28f0c3 commit c8d9439

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

apps/web/src/lib/ai-gateway/providers/model-settings.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import type {
1111
OpenCodePrompt,
1212
OpenCodeSettings,
1313
} from '@kilocode/db/schema-types';
14+
import { isStepModel } from '@/lib/ai-gateway/providers/stepfun';
1415
import { ReasoningEffortSchema } from '@kilocode/db/schema-types';
1516

1617
export const REASONING_VARIANTS_BINARY = {
@@ -94,6 +95,9 @@ export function getModelVariants(model: string): OpenCodeSettings['variants'] {
9495
high: { reasoning: { enabled: true, effort: 'high' } },
9596
};
9697
}
98+
if (isStepModel(model)) {
99+
return REASONING_VARIANTS_LOW_MEDIUM_HIGH;
100+
}
97101
return undefined;
98102
}
99103

0 commit comments

Comments
 (0)