diff options
Diffstat (limited to 'scripts/sask')
-rwxr-xr-x | scripts/sask | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/scripts/sask b/scripts/sask new file mode 100755 index 0000000..1ea0f3f --- /dev/null +++ b/scripts/sask @@ -0,0 +1,15 @@ +#!/bin/sh + +. slib + +check_program "ollama" + +if [ "${1}" = "-s" ]; then + addition="answer in a short way:" + shift +fi + +question="${addition} ${@}" +model="codellama" + +echo "${question}" | ollama run "${model}" |