fix async call

This commit is contained in:
2025-06-29 16:28:35 -04:00
parent 7a271fcf8f
commit af568bc9cc

View File

@ -119,10 +119,10 @@ const generateOllamaRequest = async (
});
const ollamaResponse: OllamaResponse = await response.json();
await storePromptData(notification, ollamaResponse);
console.log(
`${notification.status.account.fqn} asked:\n${notification.status.content}\nResponse:\n${ollamaResponse.response}`
);
postReplyToStatus(notification, ollamaResponse);
// console.log(
// `${notification.status.account.fqn} asked:\n${notification.status.content}\nResponse:\n${ollamaResponse.response}`
// );
await postReplyToStatus(notification, ollamaResponse);
}
} catch (error: any) {
throw new Error(error.message);