dev: lokale Tests mit Mock-llama.cpp
This commit is contained in:
Executable
+13
@@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
# Simuliert /usr/local/bin/llama-profile für lokale Tests.
|
||||
# Setzt nur die Fake-override.conf (kein systemctl, kein whiptail).
|
||||
set -e
|
||||
D="$(cd "$(dirname "$0")" && pwd)/fake-profile-dir"
|
||||
|
||||
case "${1:-}" in
|
||||
fast|medium|long) ;;
|
||||
*) echo "Usage: fake-llama-profile {fast|medium|long}"; exit 1 ;;
|
||||
esac
|
||||
|
||||
cp "$D/profile-$1.conf.disabled" "$D/override.conf"
|
||||
echo "fake: Profil '$1' gesetzt"
|
||||
Reference in New Issue
Block a user