From 94580f825eade7b28bf77940711b673ca36a7b99 Mon Sep 17 00:00:00 2001 From: josc146 Date: Mon, 5 Feb 2024 12:31:26 +0800 Subject: [PATCH] chore --- backend-golang/app.go | 2 +- frontend/src/pages/Chat.tsx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/backend-golang/app.go b/backend-golang/app.go index 66497aa..7d65eb3 100644 --- a/backend-golang/app.go +++ b/backend-golang/app.go @@ -195,7 +195,7 @@ func (a *App) UpdateApp(url string) (broken bool, err error) { if err != nil { return false, err } - file, err := archive.Open("Contents/MacOS/RWKV-Runner") + file, err := archive.Open("RWKV-Runner.app/Contents/MacOS/RWKV-Runner") if err != nil { return false, err } diff --git a/frontend/src/pages/Chat.tsx b/frontend/src/pages/Chat.tsx index 3cf8e13..8804407 100644 --- a/frontend/src/pages/Chat.tsx +++ b/frontend/src/pages/Chat.tsx @@ -355,9 +355,9 @@ const SidePanel: FC = observer(() => { } else { messageContent += '\n' + line; } - if (i === lines.length - 1) - pushMessage(messageRole, messageContent.trim()); } + if (messageContent.trim()) + pushMessage(messageRole, messageContent.trim()); saveConversation(); }); }}>