fix(api): name an unconfigured engine on /health
Fourth copy of the same wrong sentence, and the one an operator actually reads: a compiled-in engine with no API key reported itself as unavailable in the build. Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -290,9 +290,7 @@ async fn probe_provider(state: &AppState, id: &str) -> ProviderCheck {
|
||||
async fn probe_engine(state: &AppState, engine: &str) -> Check {
|
||||
match state.translation_backend(engine) {
|
||||
Some(backend) => backend_check(backend.probe().await),
|
||||
None => Check::unconfigured(format!(
|
||||
"'{engine}' is selected but unavailable in this build"
|
||||
)),
|
||||
None => Check::unconfigured(arr_subs::unusable_engine(engine)),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user