mirror of
https://github.com/dograh-hq/dograh.git
synced 2026-06-22 08:38:13 +02:00
feat: add ultravox realtime and fix signature issue in telephony
- Add UltraVox realtime - Fix signature issue on telephony
This commit is contained in:
parent
9135c2da13
commit
ea0cac63cd
24 changed files with 2082 additions and 133 deletions
|
|
@ -17,6 +17,7 @@ from api.services.configuration.registry import (
|
|||
GoogleVertexLLMConfiguration,
|
||||
GrokRealtimeLLMConfiguration,
|
||||
OpenAILLMService,
|
||||
UltravoxRealtimeLLMConfiguration,
|
||||
)
|
||||
from api.services.configuration.resolve import resolve_effective_config
|
||||
|
||||
|
|
@ -261,6 +262,22 @@ class TestRealtimeOverride:
|
|||
assert result.realtime.provider == "grok_realtime"
|
||||
assert result.realtime.voice == "Sal"
|
||||
|
||||
def test_switch_realtime_provider_to_ultravox(self, global_config_realtime):
|
||||
result = resolve_effective_config(
|
||||
global_config_realtime,
|
||||
{
|
||||
"realtime": {
|
||||
"provider": "ultravox_realtime",
|
||||
"api_key": "ultra-key",
|
||||
"model": "ultravox-v0.7",
|
||||
"voice": "Mark",
|
||||
}
|
||||
},
|
||||
)
|
||||
assert isinstance(result.realtime, UltravoxRealtimeLLMConfiguration)
|
||||
assert result.realtime.provider == "ultravox_realtime"
|
||||
assert result.realtime.voice == "Mark"
|
||||
|
||||
def test_override_is_realtime_only_without_realtime_section(self, global_config):
|
||||
"""Override is_realtime=True but provide no realtime config.
|
||||
Should set the flag; realtime section stays None from global."""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue