From 4239f86e983385a93b53b73e158c57bb6ea9e37f Mon Sep 17 00:00:00 2001 From: Ayo Date: Tue, 26 Aug 2025 19:16:46 +0200 Subject: [PATCH] feat(ai): list and ps subcommands --- ai-coder.sh | 2 +- ai.sh | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ai-coder.sh b/ai-coder.sh index 8a56aa8..988e46e 100755 --- a/ai-coder.sh +++ b/ai-coder.sh @@ -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 diff --git a/ai.sh b/ai.sh index ebab2cd..5fc93d9 100755 --- a/ai.sh +++ b/ai.sh @@ -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