feat(ai): remove brainstorm mode
This commit is contained in:
parent
6d6b9b4751
commit
46d57ad0a7
4 changed files with 8 additions and 40 deletions
|
@ -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
9
ai.sh
|
@ -30,13 +30,10 @@ if ! [ "$2" = "" ]; then
|
||||||
elif [ "$2" = "sleep" ]; then
|
elif [ "$2" = "sleep" ]; then
|
||||||
ollama stop $model
|
ollama stop $model
|
||||||
else
|
else
|
||||||
start_time=$(date +%s%N)
|
# tempfile="$(mktemp)"
|
||||||
|
# ollama run $model "$@" --hidethinking > $tempfile
|
||||||
|
# typora $tempfile
|
||||||
ollama run $model "$@" --hidethinking
|
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
|
fi
|
||||||
else
|
else
|
||||||
ollama run $model --hidethinking
|
ollama run $model --hidethinking
|
||||||
|
|
4
ayo.sh
4
ayo.sh
|
@ -5,7 +5,6 @@
|
||||||
. ${scripts_dir}/functions.sh
|
. ${scripts_dir}/functions.sh
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
||||||
case $1 in
|
case $1 in
|
||||||
## SHORTCUTS
|
## SHORTCUTS
|
||||||
|
|
||||||
|
@ -70,9 +69,6 @@ case $1 in
|
||||||
|
|
||||||
## SCRIPTS
|
## SCRIPTS
|
||||||
|
|
||||||
ai-brainstorm)
|
|
||||||
. ${scripts_dir}/ai-brainstorm.sh "$@"
|
|
||||||
;;
|
|
||||||
ai-coder)
|
ai-coder)
|
||||||
. ${scripts_dir}/ai-coder.sh "$@"
|
. ${scripts_dir}/ai-coder.sh "$@"
|
||||||
;;
|
;;
|
||||||
|
|
12
example.conf
12
example.conf
|
@ -4,10 +4,8 @@ archive_dir="${HOME}/Notes/Archive"
|
||||||
scripts_dir="${HOME}/Projects/scripts"
|
scripts_dir="${HOME}/Projects/scripts"
|
||||||
editor="vim"
|
editor="vim"
|
||||||
|
|
||||||
# LLM configuration
|
coder="coder:latest"
|
||||||
coder="coder:8b"
|
coder_modelfile="${HOME}/Projects/llm-prompts/Modelfile-coder"
|
||||||
brainstorm="brainstorm:8b"
|
|
||||||
helper="helper:8b"
|
helper="helper:latest"
|
||||||
coder_modelfile="${HOME}/Modelfile-coder"
|
helper_modelfile="${HOME}/Projects/llm-prompts/Modelfile-helper"
|
||||||
brainstorm_modelfile="${HOME}/Modelfile-brainstorm"
|
|
||||||
helper_modelfile="${HOME}/Modelfile-brainstorm"
|
|
||||||
|
|
Loading…
Reference in a new issue