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:
@ -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(
|
||||
|
||||
Reference in New Issue
Block a user