vargai 0.4.0-alpha65 → 0.4.0-alpha66
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
package/src/ai-sdk/index.ts
CHANGED
|
@@ -168,6 +168,12 @@ export interface ElevenLabsProviderSettings {
|
|
|
168
168
|
apiKey?: string;
|
|
169
169
|
}
|
|
170
170
|
|
|
171
|
+
/** Default model IDs used when callers omit the modelId argument. */
|
|
172
|
+
export const ELEVENLABS_DEFAULTS = {
|
|
173
|
+
speechModel: "eleven_turbo_v2",
|
|
174
|
+
musicModel: "music_v1",
|
|
175
|
+
} as const;
|
|
176
|
+
|
|
171
177
|
export interface ElevenLabsProvider extends ProviderV3 {
|
|
172
178
|
speechModel(modelId?: string): SpeechModelV3;
|
|
173
179
|
musicModel(modelId?: string): MusicModelV3;
|
|
@@ -184,10 +190,10 @@ export function createElevenLabs(
|
|
|
184
190
|
|
|
185
191
|
return {
|
|
186
192
|
specificationVersion: "v3",
|
|
187
|
-
speechModel(modelId =
|
|
193
|
+
speechModel(modelId = ELEVENLABS_DEFAULTS.speechModel) {
|
|
188
194
|
return new ElevenLabsSpeechModel(modelId, client);
|
|
189
195
|
},
|
|
190
|
-
musicModel(modelId =
|
|
196
|
+
musicModel(modelId = ELEVENLABS_DEFAULTS.musicModel) {
|
|
191
197
|
return new ElevenLabsMusicModel(modelId, client);
|
|
192
198
|
},
|
|
193
199
|
languageModel(modelId: string): LanguageModelV3 {
|