mirror of
https://github.com/aljazceru/goose.git
synced 2026-01-02 22:14:26 +01:00
fix: disable form call to save cost (#1418)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user