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
@@ -70,7 +70,7 @@
70
70
  "zod": "^4.2.1"
71
71
  },
72
72
  "sideEffects": false,
73
- "version": "0.4.0-alpha65",
73
+ "version": "0.4.0-alpha66",
74
74
  "exports": {
75
75
  ".": "./src/index.ts",
76
76
  "./ai": "./src/ai-sdk/index.ts",
@@ -64,6 +64,7 @@ export {
64
64
  } from "./providers/editly/rendi";
65
65
  export {
66
66
  createElevenLabs,
67
+ ELEVENLABS_DEFAULTS,
67
68
  type ElevenLabsProvider,
68
69
  elevenlabs,
69
70
  VOICES,
@@ -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 = "eleven_turbo_v2") {
193
+ speechModel(modelId = ELEVENLABS_DEFAULTS.speechModel) {
188
194
  return new ElevenLabsSpeechModel(modelId, client);
189
195
  },
190
- musicModel(modelId = "music_v1") {
196
+ musicModel(modelId = ELEVENLABS_DEFAULTS.musicModel) {
191
197
  return new ElevenLabsMusicModel(modelId, client);
192
198
  },
193
199
  languageModel(modelId: string): LanguageModelV3 {