[Bugfix][MiniCPM-o] Prevent native duplex Stage-1 prompt overflow
Signed-off-by: Sy03 <1370724210@qq.com>
This commit is contained in:
1 parent
1c917b2751
commit
5edee1393a
32 files changed
+1591
-99
No files matched your search
@@ -9,7 +9,6 @@ from uuid import uuid4
|
||||
|
||||
|
||||
class DuplexOverlapPolicy(str, Enum):
|
||||
AUTO = "auto"
|
||||
LISTEN_ONLY = "listen_only"
|
||||
BARGE_IN_ON_SPEECH = "barge_in_on_speech"
|
||||
|
||||
@@ -101,7 +100,7 @@ class DuplexCapabilities:
|
||||
supports_multi_session = max_sessions > 1
|
||||
return cls(
|
||||
supports_model_native_turn_policy=True,
|
||||
supports_barge_in=False,
|
||||
supports_barge_in=True,
|
||||
supports_input_append=True,
|
||||
supports_replace_latest_chunk=False,
|
||||
supports_reencode_context=False,
|
||||
@@ -129,6 +128,9 @@ class DuplexCapabilities:
|
||||
signal_sources=["model_native", "client_event", "server_policy"],
|
||||
stage_handoff_transport="scheduler_data_plane",
|
||||
chunk_period_ms=1000,
|
||||
# Barge-in is now supported, but the wire chunk duration is
|
||||
# client-controlled and no hardware E2E latency has been recorded.
|
||||
# Do not advertise an invented target until that measurement exists.
|
||||
target_barge_in_latency_ms=None,
|
||||
)
|
||||
|
||||
|
||||
Reference in new issue
Block a user