From ec49b19aff6af0743519d796725413d7b68f223b Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Sun, 16 Feb 2025 22:46:44 +0200 Subject: [PATCH] Fix chat render when OpenRouter "website setting" model used --- public/scripts/reasoning.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/scripts/reasoning.js b/public/scripts/reasoning.js index 83154437d..e5dbce147 100644 --- a/public/scripts/reasoning.js +++ b/public/scripts/reasoning.js @@ -94,7 +94,7 @@ export function isHiddenReasoningModel() { { name: 'gemini-2.0-pro-exp', func: FUNCS.startsWith }, ]; - const model = getChatCompletionModel(); + const model = getChatCompletionModel() || ''; const isHidden = hiddenReasoningModels.some(({ name, func }) => func(model, name)); return isHidden;