fix(ai): use correct subcommand variable
This commit is contained in:
parent
c685a1c35e
commit
f04444f1f8
1 changed files with 7 additions and 7 deletions
14
ai.sh
14
ai.sh
|
|
@ -33,17 +33,17 @@ if ! [ "$other_args" = "" ]; then
|
||||||
open-webui serve
|
open-webui serve
|
||||||
python --version
|
python --version
|
||||||
deactivate
|
deactivate
|
||||||
elif [ "$2" = "remote" ]; then
|
elif [ "$other_args" = "remote" ]; then
|
||||||
export OLLAMA_HOST=192.168.0.6
|
export OLLAMA_HOST=192.168.0.6
|
||||||
elif [ "$2" = "list" ]; then
|
elif [ "$other_args" = "list" ]; then
|
||||||
OLLAMA_HOST=$host ollama list
|
OLLAMA_HOST=$host ollama list
|
||||||
elif [ "$2" = "ps" ]; then
|
elif [ "$other_args" = "ps" ]; then
|
||||||
OLLAMA_HOST=$host ollama ps
|
OLLAMA_HOST=$host ollama ps
|
||||||
elif [ "$2" = "rm" ]; then
|
elif [ "$other_args" = "rm" ]; then
|
||||||
OLLAMA_HOST=$host ollama rm "$3"
|
OLLAMA_HOST=$host ollama rm "$3"
|
||||||
elif [ "$2" = "init" ]; then
|
elif [ "$other_args" = "init" ]; then
|
||||||
OLLAMA_HOST=$host ollama create $model -f $modelfile
|
OLLAMA_HOST=$host ollama create $model -f $modelfile
|
||||||
elif [ "$2" = "wake" ]; then
|
elif [ "$other_args" = "wake" ]; then
|
||||||
. $HOME/llm_env/bin/activate
|
. $HOME/llm_env/bin/activate
|
||||||
|
|
||||||
unset OCL_ICD_VENDORS
|
unset OCL_ICD_VENDORS
|
||||||
|
|
@ -60,7 +60,7 @@ if ! [ "$other_args" = "" ]; then
|
||||||
|
|
||||||
echo $ZES_ENABLE_SYSMAN
|
echo $ZES_ENABLE_SYSMAN
|
||||||
echo $SYCL_CACHE_PERSISTENT
|
echo $SYCL_CACHE_PERSISTENT
|
||||||
elif [ "$2" = "sleep" ]; then
|
elif [ "$other_args" = "sleep" ]; then
|
||||||
OLLAMA_HOST=$host ollama stop $model
|
OLLAMA_HOST=$host ollama stop $model
|
||||||
else
|
else
|
||||||
# If -t flag is set, use typora to display output
|
# If -t flag is set, use typora to display output
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue