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)) { | ||||
|  | ||||
							
								
								
									
										5
									
								
								types.d.ts
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										5
									
								
								types.d.ts
									
									
									
									
										vendored
									
									
								
							| @ -61,8 +61,9 @@ export interface Status { | ||||
|   created_at: string | Date; // when the post was created | ||||
|   id: string; // ID of the reply itself | ||||
|   in_reply_to_account_id: string; // account ID of the reply | ||||
|   in_reply_to_id?: string; // status that the user has replied to | ||||
|   mentions?: Mention[]; // array of mentions | ||||
|   in_reply_to_id: string; // status that the user has replied to | ||||
|   mentions: Mention[]; // array of mentions | ||||
|   visibility: "private" | "public" | "unlisted"; | ||||
| } | ||||
|  | ||||
| export interface Mention { | ||||
|  | ||||
		Reference in New Issue
	
	Block a user