fix(provider.elevenlabs): Update ElevenLabs default TTS model to eleven_v3 and add local Claude permissions file

This commit is contained in:
2025-10-08 22:56:53 +00:00
parent 28bb13dc0c
commit bbd8770205
4 changed files with 12 additions and 6 deletions

View File

@@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@push.rocks/smartai',
version: '0.7.4',
version: '0.7.5',
description: 'SmartAi is a versatile TypeScript library designed to facilitate integration and interaction with various AI models, offering functionalities for chat, audio generation, document processing, and vision tasks.'
}

View File

@@ -61,7 +61,7 @@ export class ElevenLabsProvider extends MultiModalModel {
throw new Error('Voice ID is required for ElevenLabs TTS. Please provide voiceId in the method call or set defaultVoiceId in provider options.');
}
const modelId = optionsArg.modelId || this.options.defaultModelId || 'eleven_multilingual_v2';
const modelId = optionsArg.modelId || this.options.defaultModelId || 'eleven_v3';
const url = `${this.baseUrl}/text-to-speech/${voiceId}`;