feat(ai): remove brainstorm mode

This commit is contained in:
Ayo Ayco 2025-08-24 22:05:39 +02:00
parent 6d6b9b4751
commit 46d57ad0a7
4 changed files with 8 additions and 40 deletions

View file

@ -1,23 +0,0 @@
# Load config
. ${HOME}/ayo.conf
model=$brainstorm
modelfile=$brainstorm_modelfile
if ! [ "$2" = "" ]; then
if [ "$2" = "sleep" ]; then
ollama stop $model
elif [ "$2" = "init" ]; then
ollama create $model -f "$modelfile"
else
start_time=$(date +%s%N)
ollama run $model "$@"
end_time=$(date +%s%N)
duration=$((end_time - start_time))
duration_ms=$(echo "scale=3; $duration / 1000000" | bc)
duration_s=$(echo "scale=3; $duration_ms / 1000" | bc)
echo "Model $model took $duration_s s"
fi
else
ollama run $model
fi

9
ai.sh
View file

@ -30,13 +30,10 @@ if ! [ "$2" = "" ]; then
elif [ "$2" = "sleep" ]; then
ollama stop $model
else
start_time=$(date +%s%N)
# tempfile="$(mktemp)"
# ollama run $model "$@" --hidethinking > $tempfile
# typora $tempfile
ollama run $model "$@" --hidethinking
end_time=$(date +%s%N)
duration=$((end_time - start_time))
duration_ms=$(echo "scale=3; $duration / 1000000" | bc)
duration_s=$(echo "scale=3; $duration_ms / 1000" | bc)
echo "Model $model took $duration_s s"
fi
else
ollama run $model --hidethinking

4
ayo.sh
View file

@ -5,7 +5,6 @@
. ${scripts_dir}/functions.sh
{
case $1 in
## SHORTCUTS
@ -70,9 +69,6 @@ case $1 in
## SCRIPTS
ai-brainstorm)
. ${scripts_dir}/ai-brainstorm.sh "$@"
;;
ai-coder)
. ${scripts_dir}/ai-coder.sh "$@"
;;

View file

@ -4,10 +4,8 @@ archive_dir="${HOME}/Notes/Archive"
scripts_dir="${HOME}/Projects/scripts"
editor="vim"
# LLM configuration
coder="coder:8b"
brainstorm="brainstorm:8b"
helper="helper:8b"
coder_modelfile="${HOME}/Modelfile-coder"
brainstorm_modelfile="${HOME}/Modelfile-brainstorm"
helper_modelfile="${HOME}/Modelfile-brainstorm"
coder="coder:latest"
coder_modelfile="${HOME}/Projects/llm-prompts/Modelfile-coder"
helper="helper:latest"
helper_modelfile="${HOME}/Projects/llm-prompts/Modelfile-helper"