summaryrefslogtreecommitdiff
path: root/scripts/sask
diff options
context:
space:
mode:
authorSuleyman Farajli <suleyman@farajli.net>2025-08-30 01:04:36 +0400
committerSuleyman Farajli <suleyman@farajli.net>2025-08-30 01:04:36 +0400
commit2762a6212e089ca1b3e1a4e241a5be299c7c1dee (patch)
treec209bbe2314f28c26f88793a7e1e0678df8f69ab /scripts/sask
parentc6b35b5782c17834f590957c9169267f8f26ed06 (diff)
fix(scripts): update file paths for new directory layout
Diffstat (limited to 'scripts/sask')
-rwxr-xr-xscripts/sask15
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}"