runtime backup

This commit is contained in:
lachtan
2026-09-02 15:23:13 +02:00
parent 442ddc3c24
commit 812c30ed1a
17 changed files with 2238 additions and 315 deletions

View File

@@ -2,7 +2,8 @@
"""Parse the ollama library page text dump and list unique models."""
import re, json, sys
raw = open('scripts/ollama_library_full.txt').read()
with open('scripts/ollama_library_full.txt', encoding='utf-8') as f:
raw = f.read()
first_line = raw.split('\n')[0]
# Each line is prefixed "N| " repeated; find the first { and the last }
start = first_line.find('{')