feat(ai): list and ps subcommands

This commit is contained in:
Ayo Ayco 2025-08-26 19:16:46 +02:00
parent 9e44a05574
commit 4239f86e98
2 changed files with 5 additions and 1 deletions

View file

@ -43,7 +43,7 @@ if ! [ "$other_args" = "" ]; then
if [ "$other_args" = "sleep" ]; then
OLLAMA_HOST=$host ollama stop $model
elif [ "$other_args" = "init" ]; then
ollama create "$model" -f "$modelfile"
OLLAMA_HOST=$host ollama create "$model" -f "$modelfile"
else
# If -t flag is set, use typora to display output
if [ "$typora_flag" = true ]; then

4
ai.sh
View file

@ -48,6 +48,10 @@ if ! [ "$other_args" = "" ]; then
deactivate
elif [ "$other_args" = "remote" ]; then
export OLLAMA_HOST=192.168.0.6
elif [ "$other_args" = "list" ]; then
OLLAMA_HOST=$host ollama list
elif [ "$other_args" = "ps" ]; then
OLLAMA_HOST=$host ollama ps
elif [ "$other_args" = "init" ]; then
OLLAMA_HOST=$host ollama create $model -f $modelfile
elif [ "$other_args" = "wake" ]; then