Oberfläche nach Durchsicht: Kalender, Suchen, eigene Verwaltungsseiten, gemeinsame Gruppenkontingente
- Übersicht mit Anfragen diesen Monat; Aufzeichnungen mit Key-Name und Präfix - Ollama-API zusätzlich unter /ollama; Endpunkte in der Oberfläche einheitlich - Gruppen & Kontingente nur eigene; Alle Gruppen & Kontingente und Alle Keys für Administratoren, Keys meiner Kontingente für Lecturer, jeweils mit Suche - Kontingentformular: Modelle alle oder ausgewählte (nach Schnittstelle, aus GET /omega/api/models), Wochentage zum Anklicken, Uhrzeit- und Datumsfelder, je Person oder für die Gruppe gemeinsam (Spalte quotas.shared) - Auswahl beim Key-Anlegen zeigt, von wem ein Kontingent kommt - Zeitplan als Wochenkalender wie in den Mockups - Benutzer mit Suche und Ausblenden gesperrter Konten - Audit-Log mit deutschen Bezeichnungen, verständlichen Details und Suche - Gültigkeit um Mitternacht als "bis einschließlich"; start.sh wartet auf die Engines Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
d753fd9285
commit
11dbc1c781
18 files changed
+805
-164
No files matched your search
@@ -212,4 +212,24 @@ check("vllm/smollm2-360m" in spark1() and "llamacpp/qwen3-0.6b" in spark1(),
|
||||
"beide gepinnten Modelle sind wieder geladen")
|
||||
check(counters("key", int(cli("key", "list")[1][-1].split()[0]))[0] >= 1, "Super-Key zählt beim Key")
|
||||
|
||||
print("9) Gemeinsames Gruppenkontingent: die Grenze gilt für alle Mitglieder zusammen")
|
||||
for name in ("gruppen-dozent", "mitglied1", "mitglied2"):
|
||||
cli("user", "add", name, "--role", "lecturer" if name == "gruppen-dozent" else "user")
|
||||
code, out = cli("--as", "gruppen-dozent", "group", "create", "team")
|
||||
code, out = cli("--as", "gruppen-dozent", "group", "add", "team", "mitglied1", "mitglied2")
|
||||
code, out = cli("--as", "gruppen-dozent", "quota", "create", "team-topf", "--group", "team", "--shared", "--requests-hour", "2")
|
||||
print(f" {out[-1]}")
|
||||
qt = int(out[-1].split()[1].rstrip(":"))
|
||||
_, M1 = key("m1", "--quota", str(qt), "--owner", "mitglied1")
|
||||
_, M2 = key("m2", "--quota", str(qt), "--owner", "mitglied2")
|
||||
codes = [ask("ollama", "smollm2:135m", key=k)[0] for k in (M1, M2, M1)]
|
||||
print(f" mitglied1, mitglied2, mitglied1: {codes}")
|
||||
check(codes == [200, 200, 429], "nach zwei Anfragen der Gruppe ist der gemeinsame Topf erschöpft")
|
||||
code, out = cli("--as", "gruppen-dozent", "quota", "show", str(qt))
|
||||
hour = [line for line in out if " hour " in line]
|
||||
print(" " + "\n ".join(hour))
|
||||
requests = {line.split()[0]: line.split()[-4] for line in hour}
|
||||
check(requests.get("Gruppe") == "2" and requests.get("mitglied1") == "1" and requests.get("mitglied2") == "1",
|
||||
f"dozent sieht den Topf der Gruppe (2) und beide Personen (je 1): {requests}")
|
||||
|
||||
print("ERGEBNIS:", "alles bestanden" if not failures else f"{len(failures)} Fehler: {failures}")
|
||||
@@ -32,7 +32,10 @@ $B/omega-agent -c agent1.toml > run/agent1.log 2>&1 &
|
||||
echo "agent1 $!" >> run/pids
|
||||
$B/omega-agent -c agent2.toml > run/agent2.log 2>&1 &
|
||||
echo "agent2 $!" >> run/pids
|
||||
sleep 3
|
||||
# Warten, bis die Engines antworten (höchstens 30 s), statt fest zu schlafen
|
||||
for url in http://127.0.0.1:11441/api/version http://127.0.0.1:11442/api/version http://127.0.0.1:11443/api/version http://127.0.0.1:8181/models; do
|
||||
for _ in $(seq 60); do curl -sf -o /dev/null "$url" && break; sleep 0.5; done
|
||||
done
|
||||
$B/omega-proxy -c proxy.toml --as admin key create test | awk '{print $NF}' > run/key.txt
|
||||
$B/omega-proxy -c proxy.toml serve > run/proxy.log 2>&1 &
|
||||
echo "proxy $!" >> run/pids
|
||||
|
||||
@@ -29,6 +29,11 @@ check(st in (302, 307) and hdrs.get("location") == "/omega/", f"Browser wird nac
|
||||
st, _, body = request("GET", "/")
|
||||
check(st == 200 and b"Ollama is running" in body, "Ollama-Clients bekommen weiter die Ollama-Antwort")
|
||||
|
||||
st, _, body = request("GET", "/ollama")
|
||||
check(st == 200 and b"Ollama is running" in body, "Ollama-API auch unter /ollama")
|
||||
st, _, body = request("GET", "/ollama/api/tags")
|
||||
check(st == 401, "/ollama/api/tags braucht einen Key")
|
||||
|
||||
print("2) Oberfläche ohne externe Quellen")
|
||||
st, hdrs, index = request("GET", "/omega/")
|
||||
csp = hdrs.get("content-security-policy", "")
|
||||
|
||||
Reference in new issue
Block a user