feat: Quantisierung und Vision-Projektor aus der Datei, Passungsblock mit Abstand, Browserprüfung (#1233, #1234)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-27 14:01:37 +01:00
parent 4c7301e7db
commit d7d1352a2b
10 changed files with 160 additions and 26 deletions

View File

@ -472,6 +472,19 @@ impl Store {
Ok(n > 0)
}
/// Trägt die Quantisierung ein, wenn bisher keine steht (zum Beispiel bei Modellen, die per
/// Befehlszeile ohne `--quant` registriert wurden). Eine vorhandene Angabe bleibt.
pub fn set_quantisierung_wenn_leer(&self, model: &str, quantisierung: &str) -> Result<()> {
self.connection()
.execute(
"UPDATE artifact SET quantisierung = ?2 WHERE quantisierung IS NULL
AND model_id = (SELECT id FROM model WHERE name = ?1)",
[model, quantisierung],
)
.map_err(db)?;
Ok(())
}
/// Modellkopf des ersten Artifacts; `None`, wenn es das Modell nicht gibt.
pub fn artifact_kopf(&self, model: &str) -> Result<Option<ArtifactKopf>> {
let row = self.connection().query_row(