mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-01-19 16:56:12 +01:00
✨ WIP: Implement Realtime Ephemeral Token functionality and update related components
This commit is contained in:
parent
40c8b8fd75
commit
ea5cb4bc2b
13 changed files with 1113 additions and 14 deletions
|
|
@ -408,6 +408,18 @@ const speechTab = z
|
|||
})
|
||||
.optional();
|
||||
|
||||
const realtime = z
|
||||
.object({
|
||||
openai: z
|
||||
.object({
|
||||
url: z.string().optional(),
|
||||
apiKey: z.string().optional(),
|
||||
voices: z.array(z.string()).optional(),
|
||||
})
|
||||
.optional(),
|
||||
})
|
||||
.optional();
|
||||
|
||||
export enum RateLimitPrefix {
|
||||
FILE_UPLOAD = 'FILE_UPLOAD',
|
||||
IMPORT = 'IMPORT',
|
||||
|
|
@ -595,6 +607,7 @@ export const configSchema = z.object({
|
|||
tts: ttsSchema.optional(),
|
||||
stt: sttSchema.optional(),
|
||||
speechTab: speechTab.optional(),
|
||||
realtime: realtime.optional(),
|
||||
})
|
||||
.optional(),
|
||||
rateLimits: rateLimitSchema.optional(),
|
||||
|
|
@ -1216,6 +1229,13 @@ export enum TTSProviders {
|
|||
LOCALAI = 'localai',
|
||||
}
|
||||
|
||||
export enum RealtimeVoiceProviders {
|
||||
/**
|
||||
* Provider for OpenAI Realtime Voice API
|
||||
*/
|
||||
OPENAI = 'openai',
|
||||
}
|
||||
|
||||
/** Enum for app-wide constants */
|
||||
export enum Constants {
|
||||
/** Key for the app's version. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue