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:
@ -346,6 +346,12 @@ fn model_add(args: &[String]) -> Result<(), String> {
|
||||
enabled: !flags.has("disabled"),
|
||||
};
|
||||
let config = load_config(&flags)?;
|
||||
if new.engine == "tts"
|
||||
&& let Some(meldung) = StudioEngine::new(crate::serve::tts_config(&config)?)
|
||||
.missing_message(&new.path.to_string_lossy())
|
||||
{
|
||||
return Err(meldung);
|
||||
}
|
||||
let mut store = open_store(&config)?;
|
||||
store.register_llm(&new).map_err(|e| e.to_string())?;
|
||||
audit(&store, "model.add", &name)?;
|
||||
|
||||
Reference in New Issue
Block a user