Fix chat render when OpenRouter "website setting" model used

This commit is contained in:
Cohee
2025-02-16 22:46:44 +02:00
parent 75aec77271
commit ec49b19aff

View File

@ -94,7 +94,7 @@ export function isHiddenReasoningModel() {
{ name: 'gemini-2.0-pro-exp', func: FUNCS.startsWith }, { name: 'gemini-2.0-pro-exp', func: FUNCS.startsWith },
]; ];
const model = getChatCompletionModel(); const model = getChatCompletionModel() || '';
const isHidden = hiddenReasoningModels.some(({ name, func }) => func(model, name)); const isHidden = hiddenReasoningModels.some(({ name, func }) => func(model, name));
return isHidden; return isHidden;