chore: openai reasoning model cleanup (#7529)

This commit is contained in:
Lifei Zhou
2026-03-03 02:36:52 +11:00
committed by GitHub
parent 1350542aae
commit 82facd4ebf
10 changed files with 142 additions and 52 deletions
+1
View File
@@ -689,6 +689,7 @@ export type ModelConfig = {
context_limit?: number | null;
max_tokens?: number | null;
model_name: string;
reasoning?: boolean | null;
/**
* Provider-specific request parameters (e.g., anthropic_beta headers)
*/
@@ -231,7 +231,11 @@ export const SwitchModelModal = ({
if (claudeThinkingType === 'adaptive') {
upsert('CLAUDE_THINKING_EFFORT', claudeThinkingEffort, false).catch(console.warn);
} else if (claudeThinkingType === 'enabled') {
upsert('CLAUDE_THINKING_BUDGET', parseInt(claudeThinkingBudget, 10) || 16000, false).catch(console.warn);
upsert(
'CLAUDE_THINKING_BUDGET',
parseInt(claudeThinkingBudget, 10) || 16000,
false
).catch(console.warn);
}
}