diff --git a/ai-coder.sh b/ai-coder.sh deleted file mode 100755 index 7a56edd..0000000 --- a/ai-coder.sh +++ /dev/null @@ -1,37 +0,0 @@ -#! /bin/bash - -# Load config -. ${HOME}/ayo.conf - -host=$ollama_remote_host -model=$coder -modelfile=$coder_modelfile - -# Initialize variables -typora_flag=false -other_args=${@:2} - -# TODO: extract typora flag - -if ! [ "$other_args" = "" ]; then - if [ "$2" = "init" ]; then - OLLAMA_HOST=$host ollama create $model -f $modelfile - elif [ "$2" = "sleep" ]; then - OLLAMA_HOST=$host ollama stop $model - else - # If -t flag is set, use typora to display output - if [ "$typora_flag" = true ]; then - tempfile="$(mktemp)" - OLLAMA_HOST=$host ollama run $model "$other_args" > $tempfile - typora $tempfile > /dev/null 2>/dev/null & - else - # If no -t flag, just run the command normally - OLLAMA_HOST=$host ollama run $model "$other_args" --hidethinking - fi - fi - -else - OLLAMA_HOST=$host ollama run $model --hidethinking -fi - -# OLLAMA_HOST=$host ollama stop $model diff --git a/ai-translate.sh b/ai-translate.sh deleted file mode 100755 index a9f4644..0000000 --- a/ai-translate.sh +++ /dev/null @@ -1,18 +0,0 @@ -#! /bin/bash - -# Load config -. ${HOME}/ayo.conf - -host=$ollama_remote_host -model="helper:latest" - -TEMP=$(mktemp) -vim $TEMP - -PROMPT="Translate everything that follows into English. Only give me the translated text in English." - -OUTPUT=$(mktemp) - -OLLAMA_HOST=$host ollama run $model "$PROMPT -- " < $TEMP > $OUTPUT - -typora $OUTPUT diff --git a/ayo.sh b/ayo.sh index 02c4e66..9df9ce2 100755 --- a/ayo.sh +++ b/ayo.sh @@ -72,12 +72,6 @@ case $1 in cozy) . ${scripts_dir}/cozy.sh "$@" ;; - translate) - . ${scripts_dir}/ai-translate.sh "$@" - ;; - coder) - . ${scripts_dir}/ai-coder.sh "$@" - ;; ai) . ${scripts_dir}/ai.sh "$@" ;;