diff --git a/fetchContent.sh b/fetchContent.sh index f86ec68..fbd5b0d 100755 --- a/fetchContent.sh +++ b/fetchContent.sh @@ -1,4 +1,4 @@ -#!/usr/bin/env bash +#!/bin/bash OUTPUT_DIR="content" INPUT_FILE="${1:-urls.txt}" diff --git a/updateModels.sh b/updateModels.sh new file mode 100755 index 0000000..3a204fd --- /dev/null +++ b/updateModels.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +if [ -z "$1" ]; then + echo "Usage: $0 " + exit 1 +fi + +FOLDER="$1" + +for modelfile in "$FOLDER"/Modelfile.*; do + [ -f "$modelfile" ] || continue + name="${modelfile##*.}" + ollama create "$name" -f "$modelfile" +done \ No newline at end of file