Feat/ultravox s2s (#1032)

* support ultravox_s2s

* support ultravox_s2s

* support ultravox_s2s

* wip

* wip

* wip

* wip

* fix ultravox toolcall

* wip
This commit is contained in:
Hoan Luu Huu
2025-01-14 19:11:55 +07:00
committed by GitHub
parent 97952afb1d
commit 499c800213
4 changed files with 264 additions and 6 deletions

View File

@@ -2,6 +2,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');
const TaskLlmUltravox_S2S = require('./llms/ultravox_s2s');
class TaskLlm extends Task {
constructor(logger, opts) {
@@ -49,6 +50,10 @@ class TaskLlm extends Task {
llm = new TaskLlmVoiceAgent_S2S(this.logger, this.data, this);
break;
case 'ultravox':
llm = new TaskLlmUltravox_S2S(this.logger, this.data, this);
break;
default:
throw new Error(`Unsupported vendor ${this.vendor} for LLM`);
}