mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-04-07 00:15:23 +02:00
Merge 5301ab4351 into 8ed0bcf5ca
This commit is contained in:
commit
53ea231950
3 changed files with 177 additions and 2 deletions
|
|
@ -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(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue