Adding #hot-indians tag. - 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 8ab4d8c135ac12d5a4323f11552570a49b84bd2c
DIR parent 4fe096e6925d97e2f00f4762c40069571155064c
HTML Author: Annna Robert-Houdin <annna@bitreich.org>
Date: Mon, 27 Apr 2026 13:10:18 +0200
Adding #hot-indians tag.
Diffstat:
M annna-message-common | 4 ++--
M gpt | 11 +++++------
D gpt-coder | 30 ------------------------------
M modules/hashtags/hashtags.txt | 1 +
4 files changed, 8 insertions(+), 38 deletions(-)
---
DIR diff --git a/annna-message-common b/annna-message-common
@@ -681,12 +681,12 @@ case "${IRC_PRIVMSG_TEXT}" in
"${IRC_USER}, gpt "*)
prompt="$(printf "%s\n" "${IRC_PRIVMSG_TEXT}" | cut -c 12- | sed 's,\t, ,g')"
{
- annna-say "$(gpt "${prompt}. Please answer short and precise.")"
+ annna-say "$(gpt "${prompt}")"
} & ;;
"${IRC_USER}, code "*)
prompt="$(printf "%s\n" "${IRC_PRIVMSG_TEXT}" | cut -c 12- | sed 's,\t, ,g')"
{
- annna-say "$(gpt-coder "${prompt}. Only output the code." | bitreich-paste)"
+ annna-say "$(gpt "Write codeabout ${prompt}. Only output the source code.")"
} & ;;
"${IRC_USER}, wolfram is "*)
word="$(printf "%s\n" "${IRC_PRIVMSG_TEXT}" | cut -c 19- | sed 's,\t, ,g')"
DIR diff --git a/gpt b/gpt
@@ -2,6 +2,7 @@
export PATH="$HOME/bin:$PATH"
+# TODO: Remove due to outdated model.
function local_llama() {
#ggmlbase="/br/ai/ggml"
ggmlbase="/br/ai/llama.cpp"
@@ -59,23 +60,21 @@ function remote_llama() {
ollama run \
--hidethinking \
--nowordwrap \
- "${ggmlmodel}" \
- | head -n 1 \
- | sed -e 's/^"//;s/"$//;'
+ "${ggmlmodel}"
else
printf "%s\n" "${prompt}" \
| ollama-gpu \
ollama run \
--hidethinking \
--nowordwrap \
- "${ggmlmodel}" \
- | head -n 1 \
- | sed -e 's/^"//;s/"$//;'
+ "${ggmlmodel}"
fi
}
prompt="$1"
response="$(remote_llama "${prompt}")"
[ -z "${response}" ] && response="$(local_llama "${prompt}")"
+olines="$(printf "%s\n" "${response}" | wc -l)"
+[ $olines -gt 1 ] && response="$(printf "%s\n" "${response}" | bitreich-paste)"
[ -n "${response}" ] && printf "%s\n" "${response}"
DIR diff --git a/gpt-coder b/gpt-coder
@@ -1,30 +0,0 @@
-#!/bin/sh
-
-export PATH="$HOME/bin:$PATH"
-
-function remote_llama() {
- prompt="$1"
- ggmlmodel="huihui_ai/gpt-oss-abliterated:20b"
- if [ -z "$prompt" ];
- then
- cat \
- | ollama-gpu \
- ollama run \
- --hidethinking \
- --nowordwrap \
- "${ggmlmodel}"
- else
- printf "%s\n" "${prompt}" \
- | ollama-gpu \
- ollama run \
- --hidethinking \
- --nowordwrap \
- "${ggmlmodel}"
- fi
-}
-
-prompt="$1"
-response="$(remote_llama "${prompt}")"
-[ -z "${response}" ] && response="GPU server error."
-[ -n "${response}" ] && printf "%s\n" "${response}"
-
DIR diff --git a/modules/hashtags/hashtags.txt b/modules/hashtags/hashtags.txt
@@ -11643,6 +11643,7 @@
#hot-drinks gophers://bitreich.org/I/memecache/hot-drinks.jpg
#hot-football gophers://bitreich.org/9/memecache/hot-football.mp4
#hot-in-mckinney gophers://bitreich.org/9/memecache/hot-in-mckinney.mkv
+#hot-indians gophers://bitreich.org/I/memecache/hot-indians.jpeg
#hot-ions gophers://bitreich.org/I/memecache/hot-ions.png
#hot-lie gophers://bitreich.org/9/memecache/hot-lie.mp4
#hot-potato gophers://bitreich.org/I/memecache/hot-potato.png