URI: 
       Rename ggml to gpt. Fix gpt output for all models. Add halloween scare. - annna - Annna the nice friendly bot.
  HTML git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/annna/
   DIR Log
   DIR Files
   DIR Refs
   DIR Tags
   DIR README
       ---
   DIR commit 1ebef26b07a85cd514f8b0e05f78e0fffbd7c16e
   DIR parent 954c177cc048c52a290946fcc99bc4f8d832ebd1
  HTML Author: Annna Robert-Houdin <annna@bitreich.org>
       Date:   Thu, 31 Oct 2024 21:18:33 +0100
       
       Rename ggml to gpt. Fix gpt output for all models. Add halloween scare.
       
       Diffstat:
         M annna-message-common                |       5 ++++-
         D ggml                                |      19 -------------------
         A gpt                                 |      16 ++++++++++++++++
         A halloween                           |      12 ++++++++++++
       
       4 files changed, 32 insertions(+), 20 deletions(-)
       ---
   DIR diff --git a/annna-message-common b/annna-message-common
       @@ -716,6 +716,9 @@ case "${text}" in
                # Emulate https://threats.kaspersky.com/en/threat/IRC-Worm.DOS.Septic/
                annna-say -s "${server}" -c "${channel}" "${user}, Your word is my command, Power to satan!"
                ;;
       +"${ircuser}, please scare me.")
       +        annna-say -s "${server}" -c "${channel}" "$(halloween)"
       +        ;;
        "${ircuser}, how drunk is "*)
                {
                        drunknick="$(printf "%s\n" "${text}" \
       @@ -733,7 +736,7 @@ case "${text}" in
                        gptprompt="$(printf "%s\n" "${text}" \
                                | sed 's,.*how do I \(.*\),\1,' \
                                | tr -d '?')"
       -                gpturi="$(ggml "how do I ${gptprompt}" | bitreich-paste)"
       +                gpturi="$(gpt "how do I ${gptprompt}" | bitreich-paste)"
                        if [ -n "${gpturi}" ];
                        then
                                annna-say -s "${server}" -c "${channel}" "${user}, try this: ${gpturi}"
   DIR diff --git a/ggml b/ggml
       @@ -1,19 +0,0 @@
       -#!/bin/sh
       -
       -set -x
       -
       -#ggmlbase="/br/ai/ggml"
       -ggmlbase="/br/ai/llama.cpp"
       -#ggmlbin="./build/bin/gpt-2"
       -ggmlbin="./build/bin/llama-simple"
       -#ggmlmodel="models/gpt-2-1558M/ggml-model.bin"
       -ggmlmodel="models/Qwen2.5-14B.Q4_0.gguf"
       -ggmlntokens="100"
       -
       -cd $ggmlbase
       -$ggmlbin -m $ggmlmodel -n $ggmlntokens \
       -        -p "$1" -t 16 #2>/dev/null \
       -#        | tail -n +19 \
       -#        | head -n -6 \
       -#        | sed 's,<|endoftext|>,,'
       -
   DIR diff --git a/gpt b/gpt
       @@ -0,0 +1,16 @@
       +#!/bin/sh
       +
       +#ggmlbase="/br/ai/ggml"
       +ggmlbase="/br/ai/llama.cpp"
       +#ggmlbin="./build/bin/gpt-2"
       +ggmlbin="./build/bin/llama-simple"
       +#ggmlmodel="models/gpt-2-1558M/ggml-model.bin"
       +ggmlmodel="models/zephyr-7b-beta.Q4_0.gguf"
       +ggmlntokens="69"
       +
       +cd $ggmlbase
       +$ggmlbin -m $ggmlmodel -n $ggmlntokens \
       +        "$1 Begin all lines with OUTPUT:." 2>/dev/null \
       +        | grep "^OUTPUT:" \
       +        | cut -d' ' -f 2-
       +
   DIR diff --git a/halloween b/halloween
       @@ -0,0 +1,12 @@
       +#!/bin/sh
       +
       +export PATH="/home/annna/bin:$PATH"
       +halloweenbase="/home/annna/bin/modules/halloween"
       +hchar="$(shuf -n 1 $halloweenbase/character.txt)"
       +hmood="$(shuf -n 1 $halloweenbase/mood.txt)"
       +hdo="$(printf "trick\ntreat\n" | shuf -n 1)"
       +
       +gpt "You are going to scare ${hdo} the user on Halloween in the style of talking ${hmood} ${hchar}. Please be really scary." \
       +        | head -n 1 \
       +        | tr -d '"'
       +