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) => {
|
onFinish: async (message, _reason) => {
|
||||||
window.electron.stopPowerSaveBlocker();
|
window.electron.stopPowerSaveBlocker();
|
||||||
|
|
||||||
// Extract text content from the message to pass to askAi
|
// Disabled askAi calls to save costs
|
||||||
const messageText = getTextContent(message);
|
// const messageText = getTextContent(message);
|
||||||
const fetchResponses = await askAi(messageText);
|
// const fetchResponses = await askAi(messageText);
|
||||||
setMessageMetadata((prev) => ({ ...prev, [message.id || '']: fetchResponses }));
|
// setMessageMetadata((prev) => ({ ...prev, [message.id || '']: fetchResponses }));
|
||||||
|
|
||||||
const timeSinceLastInteraction = Date.now() - lastInteractionTime;
|
const timeSinceLastInteraction = Date.now() - lastInteractionTime;
|
||||||
window.electron.logInfo('last interaction:' + lastInteractionTime);
|
window.electron.logInfo('last interaction:' + lastInteractionTime);
|
||||||
|
|||||||
Reference in New Issue
Block a user