llama.cpp 配置

This commit is contained in:
2026-04-29 19:40:22 +08:00
parent 0240ff10e1
commit 7950532491
4 changed files with 77 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
basedir=$(realpath -m $(dirname "${BASH_SOURCE[0]:-$0}"))
source "${basedir}/function.bash"
unset basedir
if [[ -e "$(type -p llama-cli)" ]]; then
completion_file="llama-cpp"
generate-bash-completion "$completion_file" "llama-cli --completion-bash"
load-bash-completion -s "$completion_file"
unset completion_file
fi