[Core][Frontend] Unified Full-duplex Framework (#7413)
Signed-off-by: chickeyton <ngton2014@gmail.com> Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
9005d78903
commit
99ff4f3070
182 files changed
+26951
-34743
No files matched your search
@@ -43,10 +43,11 @@ async def _warmup_duplex_realtime(app, args, warmup_frames: int) -> None:
|
||||
model_name = served
|
||||
else:
|
||||
model_name = args.model
|
||||
adapter = getattr(getattr(app.state, "openai_serving_duplex", None), "_serving_runtime_adapter", None)
|
||||
frame_samples = int(getattr(adapter, "silence_continuation_samples", 16000))
|
||||
# One silence unit as the engine-side plugin defines it (DuplexOmniEngine.plugin).
|
||||
plugin = getattr(getattr(app.state.engine_client, "engine", None), "plugin", None)
|
||||
frame_samples = int(getattr(plugin, "silence_continuation_samples", 16000))
|
||||
silence = base64.b64encode(bytes(frame_samples * 4)).decode("ascii")
|
||||
from vllm_omni.experimental.fullduplex.client import build_realtime_url
|
||||
from vllm_omni.clients.duplex import build_realtime_url
|
||||
|
||||
url = (
|
||||
build_realtime_url(f"ws://127.0.0.1:{args.port}/v1/realtime", model_name, autostart=False)
|
||||
|
||||
Reference in new issue
Block a user