diff --git a/ai-brainstorm.sh b/ai-brainstorm.sh deleted file mode 100644 index 7fb1cbb..0000000 --- a/ai-brainstorm.sh +++ /dev/null @@ -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 diff --git a/ai.sh b/ai.sh index d77a470..0bda063 100644 --- a/ai.sh +++ b/ai.sh @@ -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 diff --git a/ayo.sh b/ayo.sh index 995194b..416f0c0 100755 --- a/ayo.sh +++ b/ayo.sh @@ -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 "$@" ;; diff --git a/example.conf b/example.conf index eeed838..cbbd199 100644 --- a/example.conf +++ b/example.conf @@ -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"