This commit is contained in:
Mieszko Makuch 2026-04-05 02:30:23 +00:00 committed by GitHub
commit 53ea231950
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 177 additions and 2 deletions

View file

@ -549,8 +549,14 @@ const sttOpenaiSchema = z.object({
url: z.string().optional(),
apiKey: z.string(),
model: z.string(),
language: z
.string()
.regex(/^[a-z]{2}(-[a-z]{2})?$/)
.optional(),
extraParams: z.record(z.union([z.string(), z.number(), z.boolean()])).optional(),
});
/** Note: language and extraParams are only supported for the OpenAI provider. */
const sttAzureOpenAISchema = z.object({
instanceName: z.string(),
apiKey: z.string(),