Explorar el Código

Add elevenlabs platform

Define common types for elevenlabs.
master
TheoryOfNekomata hace 1 año
padre
commit
1405d432ef
Se han modificado 5 ficheros con 23 adiciones y 1 borrados
  1. +3
    -0
      README.md
  2. +9
    -0
      src/platforms/elevenlabs/common.ts
  3. +0
    -0
      src/platforms/elevenlabs/events.ts
  4. +10
    -0
      src/platforms/elevenlabs/index.ts
  5. +1
    -1
      src/platforms/openai/common.ts

+ 3
- 0
README.md Ver fichero

@@ -20,3 +20,6 @@ Many-in-one AI client.
- [ ] files
- [ ] fine-tunes
- [ ] moderations
* ElevenLabs
- [ ] TTS (stream)
- [ ] get voices

+ 9
- 0
src/platforms/elevenlabs/common.ts Ver fichero

@@ -0,0 +1,9 @@
export const enum ApiVersion {
V1 = 'v1',
}

export interface Configuration {
apiKey: string;
apiVersion: ApiVersion;
baseUrl?: string;
}

+ 0
- 0
src/platforms/elevenlabs/events.ts Ver fichero


+ 10
- 0
src/platforms/elevenlabs/index.ts Ver fichero

@@ -0,0 +1,10 @@
import { Configuration } from './common';

export * from './common';

export const PLATFORM_ID = 'elevenlabs' as const;

export interface PlatformConfig {
platform: typeof PLATFORM_ID;
platformConfiguration: Configuration;
}

+ 1
- 1
src/platforms/openai/common.ts Ver fichero

@@ -38,7 +38,7 @@ export class PlatformError extends Error {
}
}

export enum ApiVersion {
export const enum ApiVersion {
V1 = 'v1',
}



Cargando…
Cancelar
Guardar