This commit is contained in:
2025-10-08 22:49:08 +00:00
parent 3a24c2c4bd
commit 28bb13dc0c
8 changed files with 2155 additions and 695 deletions

View File

@@ -96,6 +96,18 @@ export class Conversation {
return conversation;
}
public static async createWithElevenlabs(smartaiRefArg: SmartAi) {
if (!smartaiRefArg.elevenlabsProvider) {
throw new Error('ElevenLabs provider not available');
}
const conversation = new Conversation(smartaiRefArg, {
processFunction: async (input) => {
return '' // TODO implement proper streaming
}
});
return conversation;
}
// INSTANCE
smartaiRef: SmartAi
private systemMessage: string;