From a899e9acebe9f095e981039901070054b2b62828 Mon Sep 17 00:00:00 2001 From: saikidev Date: Thu, 13 Feb 2025 16:44:15 +0800 Subject: [PATCH] parse topic from reasoning model outputs --- app/store/chat.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/store/chat.ts b/app/store/chat.ts index 87c1a8beb..5625f38c8 100644 --- a/app/store/chat.ts +++ b/app/store/chat.ts @@ -714,6 +714,12 @@ export const useChatStore = createPersistStore( }, onFinish(message, responseRes) { if (responseRes?.status === 200) { + // deal with and tags + if (message.startsWith("")) { + message = message + .slice(message.indexOf("") + 8) + .trim(); + } get().updateTargetSession( session, (session) =>