fix: Befunde der Oberflächenprüfung vor 1.0.0 behoben (#1284)
Überblick zeigt geladene Modelle sofort, Dialoge schließen nur am Hintergrund, Handy-Ansicht von Modellen und Modellsuche, Ausfallhinweise, Protokoll mit Leerzustand und Tastaturbedienung, Fußzeile nennt Chat. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@ -82,8 +82,8 @@ fn found_block(
|
||||
})
|
||||
.collect();
|
||||
format!(
|
||||
"<table><thead><tr><th>Fund</th><th>Quantisierung</th><th class=\"num\">Größe</th><th>Pfad oder Name</th><th></th></tr></thead>\
|
||||
<tbody>{rows}</tbody></table>{dialogs}"
|
||||
"<div class=\"breit\"><table><thead><tr><th>Fund</th><th>Quantisierung</th><th class=\"num\">Größe</th><th>Pfad oder Name</th><th></th></tr></thead>\
|
||||
<tbody>{rows}</tbody></table></div>{dialogs}"
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
@ -642,13 +642,20 @@ pub(super) async fn page(
|
||||
let actor_options = value_options(&actors, &label_input(&filter.actor));
|
||||
let model_options = value_options(&models, &label_input(&filter.model));
|
||||
let engine_options = value_options(&engines, &label_input(&filter.engine));
|
||||
let tabelle = if rows.is_empty() {
|
||||
"<section class=\"card\"><p class=\"leer\">Keine Einträge für diese Auswahl. Ein längerer Zeitraum oder weniger Filter zeigen mehr.</p></section>".to_string()
|
||||
} else {
|
||||
format!(
|
||||
"<section class=\"card\"><div class=\"breit\"><table data-filtern=\"logs\" data-nur-sortieren><thead><tr><th data-spalte=\"zeit\">Zeit</th><th data-spalte=\"wer\">Benutzer / Key</th><th data-spalte=\"modell\">Modell</th><th data-spalte=\"engine\">Engine</th><th data-spalte=\"status\" data-zahl>Status</th><th data-spalte=\"name\">Ereignis</th><th data-spalte=\"korrelation\">Korrelation</th>{kopf_messung}</tr></thead><tbody>{body_rows}</tbody></table></div></section>"
|
||||
)
|
||||
};
|
||||
let body = format!(
|
||||
"<form method=\"get\" action=\"/ui/protokoll\" class=\"zeile\" data-auto><input type=\"hidden\" name=\"reiter\" value=\"{source}\"><label>Zeitraum <select name=\"zeit\">{periods}</select></label>\
|
||||
<label>Benutzer oder Key <select name=\"wer\">{actor_options}</select></label><label>Modell <select name=\"modell\">{model_options}</select></label>\
|
||||
<label>Engine <select name=\"engine\">{engine_options}</select></label><label>Status <select name=\"status\">{statuses}</select></label>\
|
||||
<label>Freitext in Metadaten <input name=\"q\" maxlength=\"100\" value=\"{}\"></label><button>Anzeigen</button></form>\
|
||||
<p>Höchstens 500 Treffer aus den letzten 5000 passenden Datenbankzeilen. Dateiquellen: höchstens 8 Dateien mit jeweils 64 KiB vom Ende, Auswahl aus höchstens 256 Verzeichniseinträgen. Die Aufbewahrung begrenzt den Zeitraum. Ohne Zeilenzeitstempel gilt die Dateizeit. Fehlende Metadaten können nicht gefiltert werden. Freie Engine-Texte und sensible Felder werden ausgeblendet; die Suche verwendet nur die bereinigte Anzeige.</p>\
|
||||
<section class=\"card\"><div class=\"breit\"><table data-filtern=\"logs\" data-nur-sortieren><thead><tr><th data-spalte=\"zeit\">Zeit</th><th data-spalte=\"wer\">Benutzer / Key</th><th data-spalte=\"modell\">Modell</th><th data-spalte=\"engine\">Engine</th><th data-spalte=\"status\" data-zahl>Status</th><th data-spalte=\"name\">Ereignis</th><th data-spalte=\"korrelation\">Korrelation</th>{kopf_messung}</tr></thead><tbody>{body_rows}</tbody></table></div></section>",
|
||||
{tabelle}",
|
||||
esc(&label_input(&text))
|
||||
);
|
||||
// Für `nutzer` zeigen die Datenbankquellen nur das Eigene (#1205); das sagt ein Hinweis über der Tabelle.
|
||||
|
||||
@ -79,7 +79,8 @@ pub(super) async fn modelle_teil(
|
||||
|
||||
pub(super) async fn page(state: &AppState, user: &super::Viewer) -> String {
|
||||
let mut body = format!(
|
||||
"<section class=\"card\" data-refresh=\"/ui/teil/sprachmodelle\" data-interval=\"3000\">{}</section>",
|
||||
"<p id=\"sm-stand\" class=\"klein\" role=\"status\"></p>\
|
||||
<section class=\"card\" data-refresh=\"/ui/teil/sprachmodelle\" data-interval=\"3000\" data-status=\"sm-stand\">{}</section>",
|
||||
modelle_karte(state, user).await
|
||||
);
|
||||
let voices = state.runtime.engine_voices("tts").await;
|
||||
|
||||
@ -227,7 +227,7 @@ pub(super) async fn html(state: &AppState, viewer: &super::Viewer) -> String {
|
||||
let t = metrics.totals();
|
||||
let gpus = metrics.gpus();
|
||||
let gpu_status = metrics.gpu_status();
|
||||
let instances = metrics.instances();
|
||||
let instances = state.runtime.instanz_zeilen();
|
||||
let host = metrics.host();
|
||||
let (gpu_alter, host_alter) = (metrics.gpu_alter_s(), metrics.host_alter_s());
|
||||
let statuses = state.runtime.engine_status().await;
|
||||
|
||||
@ -754,9 +754,9 @@ pub(super) async fn models_page(
|
||||
};
|
||||
let content = match art.as_str() {
|
||||
"sprache" => stimmen::page(&state, &viewer).await,
|
||||
"embedding" => format!("<section class=\"card\" data-refresh=\"/ui/teil/modelle?art=embedding\" data-interval=\"3000\">{}</section><p class=\"klein\">Der Test (Knopf mit Haken) schickt einen kurzen Satz an das Modell und zeigt, ob ein Vektor zurückkommt und wie groß er ist.</p>", models_table(&state, &viewer, "embedding")),
|
||||
"embedding" => format!("<p id=\"mod-stand\" class=\"klein\" role=\"status\"></p><section class=\"card\" data-status=\"mod-stand\" data-refresh=\"/ui/teil/modelle?art=embedding\" data-interval=\"3000\">{}</section><p class=\"klein\">Der Test (Knopf mit Haken) schickt einen kurzen Satz an das Modell und zeigt, ob ein Vektor zurückkommt und wie groß er ist.</p>", models_table(&state, &viewer, "embedding")),
|
||||
"bild" | "musik" => "<section class=\"card\"><h2>Workflows</h2><p class=\"leer\">Noch keine Workflows: ComfyUI ist noch nicht gebaut.</p></section>".to_string(),
|
||||
_ => format!("<section class=\"card\" data-refresh=\"/ui/teil/modelle\" data-interval=\"3000\">{}</section><p class=\"klein\">Das Denkstufen-Symbol erscheint in „Kann“, sobald der Test am Modell (Knopf mit Haken) „ja“ ergeben hat.</p>", models_table(&state, &viewer, "llm")),
|
||||
_ => format!("<p id=\"mod-stand\" class=\"klein\" role=\"status\"></p><section class=\"card\" data-status=\"mod-stand\" data-refresh=\"/ui/teil/modelle\" data-interval=\"3000\">{}</section><p class=\"klein\">Das Denkstufen-Symbol erscheint in „Kann“, sobald der Test am Modell (Knopf mit Haken) „ja“ ergeben hat.</p>", models_table(&state, &viewer, "llm")),
|
||||
};
|
||||
let mut body = format!("{}{nav}{content}", notice(query.as_deref()));
|
||||
if viewer.admin() && art.is_empty() {
|
||||
@ -1379,7 +1379,8 @@ pub(super) async fn queue_page(State(state): State<Arc<AppState>>, headers: Head
|
||||
return redirect("/ui/login");
|
||||
};
|
||||
let body = format!(
|
||||
"<div data-refresh=\"/ui/teil/warteschlange\" data-interval=\"2000\">{}</div>",
|
||||
"<p id=\"ws-stand\" class=\"klein\" role=\"status\"></p>\
|
||||
<div data-refresh=\"/ui/teil/warteschlange\" data-interval=\"2000\" data-status=\"ws-stand\">{}</div>",
|
||||
queue_html(&state.runtime.scheduler_view())
|
||||
);
|
||||
html(
|
||||
|
||||
Reference in New Issue
Block a user