fix(tts): nicht installierte Sprachmodelle nicht registrieren und nicht anbieten (#1114)
Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GmHhg5YdSXUmKzjHCaEWQp
This commit is contained in:
@ -601,6 +601,12 @@ pub(super) async fn model_register(
|
||||
let Some(artifact) = found.into_iter().find(|a| a.name == fund) else {
|
||||
return back("/ui/engines", "nicht_gefunden");
|
||||
};
|
||||
if !state
|
||||
.runtime
|
||||
.model_installed(&engine, &artifact.path.to_string_lossy())
|
||||
{
|
||||
return back("/ui/engines", "nicht_installiert");
|
||||
}
|
||||
let new = NewLlm {
|
||||
name: name.clone(),
|
||||
engine: engine.clone(),
|
||||
|
||||
Reference in New Issue
Block a user