Feat/deepgram voice agent (#1006)

* wip

* wip

* wip
This commit is contained in:
Dave Horton
2024-12-13 10:05:23 -05:00
committed by GitHub
parent 0aa37a83ae
commit 5e04db82bf
3 changed files with 327 additions and 0 deletions

View File

@@ -1,6 +1,7 @@
const Task = require('../task');
const {TaskPreconditions} = require('../../utils/constants');
const TaskLlmOpenAI_S2S = require('./llms/openai_s2s');
const TaskLlmVoiceAgent_S2S = require('./llms/voice_agent_s2s');
class TaskLlm extends Task {
constructor(logger, opts) {
@@ -44,6 +45,12 @@ class TaskLlm extends Task {
llm = new TaskLlmOpenAI_S2S(this.logger, this.data, this);
}
break;
case 'voiceagent':
case 'deepgram':
llm = new TaskLlmVoiceAgent_S2S(this.logger, this.data, this);
break;
default:
throw new Error(`Unsupported vendor ${this.vendor} for LLM`);
}