add bash file to update models

This commit is contained in:
cediackermann 2026-04-15 11:32:38 +02:00
parent 8af5c22c18
commit 5c310c3cba
2 changed files with 15 additions and 1 deletions

View file

@ -1,4 +1,4 @@
#!/usr/bin/env bash #!/bin/bash
OUTPUT_DIR="content" OUTPUT_DIR="content"
INPUT_FILE="${1:-urls.txt}" INPUT_FILE="${1:-urls.txt}"

14
updateModels.sh Executable file
View file

@ -0,0 +1,14 @@
#!/bin/bash
if [ -z "$1" ]; then
echo "Usage: $0 <folder>"
exit 1
fi
FOLDER="$1"
for modelfile in "$FOLDER"/Modelfile.*; do
[ -f "$modelfile" ] || continue
name="${modelfile##*.}"
ollama create "$name" -f "$modelfile"
done