fix(api): name an unconfigured engine on /health
ci / web (push) Successful in 1m3s
e2e / e2e (push) Failing after 2m16s
ci / rust (push) Successful in 2m31s
ci / image (push) Successful in 3m7s

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:
Miguel Palhas
2026-09-20 18:47:29 +01:00
co-authored by Claude
parent 70ba6ac376
commit 460b82f039
+1 -3
View File
@@ -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)),
}
}