feat(voice): support evidence reuse, 120s output capacity, and input ASR coalescing
- Add internal reuse_last_evidence tool for continuing existing topic without repeated retrieval - Expand OpenAI output capacity to 120s / 5,760,000 bytes and add delivery fairness - Coalesce adjacent user ASR transcript deltas to prevent client control queue overflow - Add server-side OPENAI_REALTIME_SPEED configuration and update style to v4 - Add extensive unit and integration regressions for evidence reuse, capacity, and fairness
This commit is contained in:
+3
-3
@@ -197,11 +197,11 @@ async def handle_stream_websocket(websocket, session_id, auth_service, lifecycle
|
||||
try:
|
||||
# Guard is released even if accept fails.
|
||||
await websocket.accept()
|
||||
limits = RuntimeSettings()
|
||||
limits = RuntimeSettings.for_provider(config.provider)
|
||||
adapter = await create_adapter(config, limits)
|
||||
async def authority_check(execution):
|
||||
await blocking(lifecycle_service.validate_stream, user, session_id, runtime.session_execution)
|
||||
await blocking(lifecycle_service.validate_stream, user, session_id, execution)
|
||||
await blocking(lifecycle_service.validate_stream, user, session_id, execution,
|
||||
session_execution=runtime.session_execution)
|
||||
return True
|
||||
store = DurableTools(lifecycle_service, user, session_id)
|
||||
async def emit(event):
|
||||
|
||||
Reference in New Issue
Block a user