mirror of
https://github.com/getpaseo/paseo.git
synced 2026-07-29 12:01:31 +00:00
Remove unshipped sherpa provider compatibility aliases
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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"])
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user