init repo
This commit is contained in:
18
ai/scripts/llama-chat.sh
Executable file
18
ai/scripts/llama-chat.sh
Executable file
@@ -0,0 +1,18 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
MODEL="${LLAMA_MODEL:-}"
|
||||
if [ -z "${MODEL}" ]; then
|
||||
echo "error: LLAMA_MODEL not set"
|
||||
echo "export LLAMA_MODEL=/absolute/path/to/model.gguf"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
./ai/scripts/build-context.sh >/dev/null
|
||||
|
||||
exec llama-cli \
|
||||
-m "${MODEL}" \
|
||||
-sysf ai/system-prompt.md \
|
||||
-f ai/context/project-context.md \
|
||||
-cnv \
|
||||
-mli
|
||||
Reference in New Issue
Block a user