From 077f3f23e1353cb6d23aca337f925b0a809fa4b2 Mon Sep 17 00:00:00 2001 From: Bradley Axen Date: Fri, 28 Feb 2025 15:44:11 +0100 Subject: [PATCH] fix: disable form call to save cost (#1418) --- ui/desktop/src/components/ChatView.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ui/desktop/src/components/ChatView.tsx b/ui/desktop/src/components/ChatView.tsx index 52676856..ce837c5b 100644 --- a/ui/desktop/src/components/ChatView.tsx +++ b/ui/desktop/src/components/ChatView.tsx @@ -53,10 +53,10 @@ export default function ChatView({ setView }: { setView: (view: View) => void }) onFinish: async (message, _reason) => { window.electron.stopPowerSaveBlocker(); - // Extract text content from the message to pass to askAi - const messageText = getTextContent(message); - const fetchResponses = await askAi(messageText); - setMessageMetadata((prev) => ({ ...prev, [message.id || '']: fetchResponses })); + // Disabled askAi calls to save costs + // const messageText = getTextContent(message); + // const fetchResponses = await askAi(messageText); + // setMessageMetadata((prev) => ({ ...prev, [message.id || '']: fetchResponses })); const timeSinceLastInteraction = Date.now() - lastInteractionTime; window.electron.logInfo('last interaction:' + lastInteractionTime);