import BrainbaseLabs from 'brainbase-labs';
const client = new BrainbaseLabs({
apiKey: process.env['BRAINBASE_LABS_API_KEY'], // This is the default and can be omitted
});
await client.workers.deployments.voice.migrateEngine('deploymentId', { workerId: 'workerId' });Switches the deployment’s voice engine by re-pointing the Retell agent LLM websocket URL, the Twilio phone voiceUrl, and updating externalConfig.engineVersion. Supports rollback via targetVersion “v1”.
import BrainbaseLabs from 'brainbase-labs';
const client = new BrainbaseLabs({
apiKey: process.env['BRAINBASE_LABS_API_KEY'], // This is the default and can be omitted
});
await client.workers.deployments.voice.migrateEngine('deploymentId', { workerId: 'workerId' });