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:
@ -129,6 +129,16 @@ impl ApiError {
|
||||
)
|
||||
}
|
||||
|
||||
/// Das Sprachmodell ist im Studio nicht installiert (Engine `tts`).
|
||||
pub fn speech_model_not_installed() -> Self {
|
||||
Self::new(
|
||||
StatusCode::NOT_FOUND,
|
||||
"invalid_request_error",
|
||||
"model_not_installed",
|
||||
"Dieses Sprachmodell ist im Studio nicht installiert.",
|
||||
)
|
||||
}
|
||||
|
||||
pub fn internal() -> Self {
|
||||
Self::new(
|
||||
StatusCode::INTERNAL_SERVER_ERROR,
|
||||
|
||||
Reference in New Issue
Block a user