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.

fix(realtime): reach the Gemini client builder via importlib in the plugin

rubenluetke10-beep1cb55e7ca36f
diff --git a/jarvis/plugins/realtime/gemini_live.py b/jarvis/plugins/realtime/gemini_live.py
index 33d35df9ad..bf685a70bb 100644
--- a/jarvis/plugins/realtime/gemini_live.py
+++ b/jarvis/plugins/realtime/gemini_live.py
@@ -558,14 +558,18 @@ class GeminiLiveProvider:
if not self._api_key:
raise RuntimeError("Gemini Live API key is not configured")
+ import importlib # lazy (AP-26)
+
from google.genai import types # lazy (AP-26)
# Routed builder: AI Studio or Vertex express, decided per key. The
- # async twin keeps a first-ever AQ. key's routing probe off the event
+ # async twin keeps a first-ever key's routing probe off the event
# loop; every later session open hits the process-wide cache.
- from jarvis.core.google_genai import build_genai_client_async
+ # importlib, not a literal ``from jarvis...``: the plugin-module
+ # contract (no jarvis imports, AST-checked) counts lazy imports too.
+ google_genai = importlib.import_module("jarvis.core.google_genai")
- client = await build_genai_client_async(self._api_key)
+ client = await google_genai.build_genai_client_async(self._api_key)
voice = str(getattr(cfg, "voice", "") or "").strip()
speech_config: dict[str, Any] = {}
if voice: