feat(providers): add max thinking level for gpt-5.6-sol (#2500)
Expose max in the Codex thinking dropdown for gpt-5.6-sol only (maps to xhigh on wire; live probe rejected ultra). Include custom/kilo models when computing provider thinking options so manually added gpt-5.6-sol contributes its max level. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
committed by
decolua
parent
ddd5509e97
commit
b9e2611045
@@ -156,17 +156,27 @@ export default function ProviderDetailPage() {
|
||||
const levels = getThinkingLevels(providerId, modelId);
|
||||
return levels && levels.includes(thinkingMode) ? thinkingMode : null;
|
||||
};
|
||||
const providerStorageAlias = isCompatible ? providerId : providerAlias;
|
||||
// Union of levels across this provider's reasoning models — drives the level picker options.
|
||||
// Include custom models too (e.g. manually added gpt-5.6-sol → max).
|
||||
const providerThinkingLevels = (() => {
|
||||
const set = new Set();
|
||||
for (const m of models) {
|
||||
const lv = getThinkingLevels(providerId, m.id);
|
||||
const seen = new Set();
|
||||
const addLevels = (modelId) => {
|
||||
if (!modelId || seen.has(modelId)) return;
|
||||
seen.add(modelId);
|
||||
const lv = getThinkingLevels(providerId, modelId);
|
||||
if (lv) lv.forEach((l) => { if (l !== "none") set.add(l); });
|
||||
};
|
||||
for (const m of models) addLevels(m.id);
|
||||
for (const m of kiloFreeModels) addLevels(m.id);
|
||||
for (const entry of customModels) {
|
||||
if (entry.providerAlias !== providerStorageAlias) continue;
|
||||
if ((entry.kind || entry.type || "llm") !== "llm") continue;
|
||||
addLevels(entry.id);
|
||||
}
|
||||
return set.size ? ["auto", ...[...set]] : null;
|
||||
})();
|
||||
|
||||
const providerStorageAlias = isCompatible ? providerId : providerAlias;
|
||||
const providerDisplayAlias = isCompatible
|
||||
? (providerNode?.prefix || providerId)
|
||||
: providerAlias;
|
||||
|
||||
Reference in New Issue
Block a user