feat(ai): list and ps subcommands
This commit is contained in:
parent
9e44a05574
commit
4239f86e98
2 changed files with 5 additions and 1 deletions
|
@ -43,7 +43,7 @@ if ! [ "$other_args" = "" ]; then
|
||||||
if [ "$other_args" = "sleep" ]; then
|
if [ "$other_args" = "sleep" ]; then
|
||||||
OLLAMA_HOST=$host ollama stop $model
|
OLLAMA_HOST=$host ollama stop $model
|
||||||
elif [ "$other_args" = "init" ]; then
|
elif [ "$other_args" = "init" ]; then
|
||||||
ollama create "$model" -f "$modelfile"
|
OLLAMA_HOST=$host ollama create "$model" -f "$modelfile"
|
||||||
else
|
else
|
||||||
# If -t flag is set, use typora to display output
|
# If -t flag is set, use typora to display output
|
||||||
if [ "$typora_flag" = true ]; then
|
if [ "$typora_flag" = true ]; then
|
||||||
|
|
4
ai.sh
4
ai.sh
|
@ -48,6 +48,10 @@ if ! [ "$other_args" = "" ]; then
|
||||||
deactivate
|
deactivate
|
||||||
elif [ "$other_args" = "remote" ]; then
|
elif [ "$other_args" = "remote" ]; then
|
||||||
export OLLAMA_HOST=192.168.0.6
|
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
|
elif [ "$other_args" = "init" ]; then
|
||||||
OLLAMA_HOST=$host ollama create $model -f $modelfile
|
OLLAMA_HOST=$host ollama create $model -f $modelfile
|
||||||
elif [ "$other_args" = "wake" ]; then
|
elif [ "$other_args" = "wake" ]; then
|
||||||
|
|
Loading…
Reference in a new issue