we do a little hackering on the 4channel
This commit is contained in:
@ -29,8 +29,7 @@ const envConfig = {
|
||||
};
|
||||
|
||||
const ollamaConfig: OllamaConfigOptions = {
|
||||
temperature: 0.6,
|
||||
num_predict: 750,
|
||||
temperature: 1.2,
|
||||
};
|
||||
|
||||
const getNotifications = async () => {
|
||||
@ -155,9 +154,10 @@ const generateOllamaRequest = async (
|
||||
if (
|
||||
striptags(notification.status.content).includes("!prompt") &&
|
||||
!notification.status.account.bot && // sanity check, sort of
|
||||
notification.type === "mention"
|
||||
notification.type === "mention" &&
|
||||
notification.status.visibility === "public" // for safety, let's only respond to public messages
|
||||
) {
|
||||
if (whitelistOnly && !(await isFromWhitelistedDomain(notification))) {
|
||||
if (whitelistOnly && !isFromWhitelistedDomain(notification)) {
|
||||
return;
|
||||
}
|
||||
if (await alreadyRespondedTo(notification)) {
|
||||
|
Reference in New Issue
Block a user