feat: private Personas und Modellgrundlage ergänzen

This commit is contained in:
2026-11-18 20:52:45 +01:00
parent ee65381172
commit 9a2727d003
11 changed files with 917 additions and 16 deletions

View File

@ -48,6 +48,7 @@ mod chat;
mod engines;
mod faehigkeiten;
mod logs;
mod personas;
mod startprofiles;
mod stimmen;
mod verwaltung;
@ -127,6 +128,13 @@ pub fn routes() -> Router<Arc<AppState>> {
.route("/ui/benutzer/update-pruefen", post(benutzer::update_check))
.route("/ui/modelle", get(verwaltung::models_page))
.route("/ui/modelle/stimme", post(stimmen::save))
.route(
"/ui/modelle/systemprompt",
post(verwaltung::model_systemprompt),
)
.route("/ui/personas", get(personas::page))
.route("/ui/personas/speichern", post(personas::save))
.route("/ui/personas.js", get(personas::script))
.route("/ui/modelle/probe", post(chat::preview))
.route("/ui/stimmen.js", get(stimmen::script))
.route("/ui/teil/modelle", get(verwaltung::models_fragment))
@ -464,6 +472,7 @@ pub(crate) fn layout(title: &str, active: &str, viewer: &Viewer, body: &str) ->
("/ui/engines", "Engines"),
("/ui/warteschlange", "Warteschlange"),
("/ui/chat", "Chat"),
("/ui/personas", "Personas"),
("/ui/anfragen", "Anfragen"),
("/ui/auswertung", "Auswertung"),
("/ui/audit", "Audit"),
@ -536,6 +545,10 @@ pub(crate) fn notice(query: Option<&str>) -> String {
true,
"Das Modell ist gesperrt. Eine geladene Instanz bleibt bis zum Entladen bestehen.",
),
"grundlage" => (
true,
"Die Modellgrundlage ist gespeichert und gilt ab der nächsten Chat-Anfrage.",
),
"planung" => (
true,
"Gespeichert. Die Angaben gelten ab dem nächsten Laden des Modells.",