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(); }); }}>