Skip to content

The agent that grows with you

fix(web): restore VoiceLiveSessionRequest dropped in the origin/main merge

Teknium2c036ce51905
diff --git a/hermes_cli/web_models.py b/hermes_cli/web_models.py
index 12cf6263634..0282099799c 100644
--- a/hermes_cli/web_models.py
+++ b/hermes_cli/web_models.py
@@ -217,6 +217,12 @@ class DebugShareRequest(BaseModel):
class TTSSpeakRequest(BaseModel):
text: str
+class VoiceLiveSessionRequest(BaseModel):
+ """POST /api/audio/voice-live/session: the renderer's WebRTC SDP offer plus optional prior
+ text turns (``{"type":"message","role":..,"content":[..]}``) to seed the live voice model."""
+ sdp: str
+ history: Optional[List[Dict[str, Any]]] = None
+
class TTSLeaseRequest(BaseModel):
"""POST /api/audio/tts-lease: ``lease`` names the toggle/surface holding the lease
(``desktop:read-aloud``, ``desktop:conversation``); ``active`` True acquires + warms, False releases."""