Skip to content

Dodaios is an open-source agent OS for your desktop: it runs your coding agents, browser and apps by voice or chat, on your own machine. Formerly Personal Jarvis.

refactor(realtime): make the realtime engine an optional, import-guarded module

Ruben Lütke613162fe0514
diff --git a/jarvis/ui/web/settings_routes.py b/jarvis/ui/web/settings_routes.py
index 0f0d8952f9..6b0c9ddf48 100644
--- a/jarvis/ui/web/settings_routes.py
+++ b/jarvis/ui/web/settings_routes.py
@@ -167,7 +167,7 @@ async def put_voice_mode(body: VoiceModeBody, request: Request) -> dict[str, obj
# A3: never pin the boot default to an unreachable engine — selecting
# realtime with no key in ANY family is a 400, not a silent dead switch.
- if body.mode == "realtime" and realtime_available_provider(cfg) is None:
+ if body.mode == "realtime" and _realtime_available_provider(cfg) is None:
raise HTTPException(status_code=400, detail="no realtime provider key configured")
if cfg is not None and getattr(cfg, "voice", None) is not None: