[Misc] remove legacy full_duplex alias for auto_response (#8024)
Signed-off-by: Nick Cao <ncao@redhat.com> Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
1 parent
71125f80ad
commit
d521b3f917
3 files changed
+3
-5
No files matched your search
@@ -125,7 +125,7 @@ class SessionEmitter:
|
||||
extra = getattr(self._ctx.session.config, "extra_body", None)
|
||||
if not isinstance(extra, dict):
|
||||
return False
|
||||
return extra.get("auto_response") is True or extra.get("full_duplex") is True
|
||||
return extra.get("auto_response") is True
|
||||
|
||||
def is_stale_model_output(self, payload: dict[str, object]) -> bool:
|
||||
"""Whether ``payload`` belongs to a turn the session has already moved past."""
|
||||
|
||||
@@ -117,9 +117,7 @@ def _render_tool_response(output: str) -> str:
|
||||
|
||||
def _require_native_full_duplex(config: object) -> None:
|
||||
extra_body = getattr(config, "extra_body", None)
|
||||
enabled = isinstance(extra_body, dict) and (
|
||||
extra_body.get("auto_response") is True or extra_body.get("full_duplex") is True
|
||||
)
|
||||
enabled = isinstance(extra_body, dict) and extra_body.get("auto_response") is True
|
||||
if not enabled:
|
||||
raise ServingRuntimeConfigError(
|
||||
"Nemotron VoiceChat currently supports model-native full-duplex streaming only; "
|
||||
|
||||
@@ -160,7 +160,7 @@ class Qwen3OmniDuplexPlugin(DuplexModelPlugin):
|
||||
def validate_client_extra_body(self, extra_body):
|
||||
if not isinstance(extra_body, Mapping):
|
||||
return
|
||||
if extra_body.get("auto_response") or extra_body.get("full_duplex"):
|
||||
if extra_body.get("auto_response"):
|
||||
raise DuplexRuntimeConfigError(
|
||||
"Qwen requires server VAD or explicit commits; native auto_response is unsupported"
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user