Fix chat render when OpenRouter "website setting" model used
| @@ -94,7 +94,7 @@ export function isHiddenReasoningModel() { | |||
| 94 | { name: 'gemini-2.0-pro-exp', func: FUNCS.startsWith }, | 94 | { name: 'gemini-2.0-pro-exp', func: FUNCS.startsWith }, |
| 95 | ]; | 95 | ]; |
| 96 | 96 | ||
| 97 | const model = getChatCompletionModel(); | 97 | const model = getChatCompletionModel() || ''; |
| 98 | 98 | ||
| 99 | const isHidden = hiddenReasoningModels.some(({ name, func }) => func(model, name)); | 99 | const isHidden = hiddenReasoningModels.some(({ name, func }) => func(model, name)); |
| 100 | return isHidden; | 100 | return isHidden; |