Remove unshipped sherpa provider compatibility aliases

This commit is contained in:
Mohamed Boudra
2026-02-06 13:16:37 +07:00
parent 277080a004
commit 1c6a1d1dd6
2 changed files with 2 additions and 8 deletions

View File

@@ -85,9 +85,7 @@ function parseSpeechProviderId(value: unknown): "openai" | "local" | null {
return null;
}
if (normalized === "openai") return "openai";
if (normalized === "sherpa" || normalized === "sherpa-onnx" || normalized === "local") {
return "local";
}
if (normalized === "local") return "local";
return null;
}

View File

@@ -51,11 +51,7 @@ const SpeechProviderIdSchema = z.preprocess(
if (typeof value !== "string") {
return value;
}
const normalized = value.trim().toLowerCase();
if (normalized === "sherpa" || normalized === "sherpa-onnx") {
return "local";
}
return normalized;
return value.trim().toLowerCase();
},
z.enum(["openai", "local"])
);