fix async call
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user