Files
bevy-template/ai/scripts/llama-chat.sh
2026-04-22 20:55:36 +02:00

19 lines
357 B
Bash
Executable File

#!/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