>>100131796
function complete_text(data) //list of all the posts as a string
{
let base_prompt = "Given the below posts from anonymouse individuals on an imageboard, generate a summary. Using context clues, vocabulary and grammar to deduce the subject of conversation.\n"
let final_prompt = base_prompt + data + "\n---\nThe participants are talking about";
return send_to_koboldcpp(final_prompt);
}
This is the only code which is even distantly AI related. Everything else is boilerplate to add buttons in the 4chin top bar and run this function with all the posts.