fix(voice): expand speech buffer to 60s, handle 2.1 cancellation race, and bound cleanup
- Expand max_input_buffer_bytes to 3,072,000 (64s at 24kHz PCM16) with 65s fixed deadline - Broaden response_cancel_not_active race classifier to include gpt-realtime-2.1/shimmer - Add transport abort method and bound cleanup waits during websocket close - Record repair progress in docs/plans/live-conversation-repair-progress.md
This commit is contained in:
@@ -286,3 +286,16 @@ def test_terminal_technical_failure_is_not_accepted_as_cancellation_race(
|
||||
finally:
|
||||
await runtime.close()
|
||||
asyncio.run(scenario())
|
||||
|
||||
@pytest.mark.parametrize("model,voice,accepted", [
|
||||
("gpt-realtime-mini", "shimmer", True),
|
||||
("gpt-realtime-2.1", "shimmer", True),
|
||||
("gpt-realtime-2.1", "alloy", False),
|
||||
("gpt-realtime-2.1-mini", "shimmer", False),
|
||||
])
|
||||
def test_no_active_classifier_is_profile_and_signature_bounded(model, voice, accepted):
|
||||
from app.infrastructure.realtime import RealtimeAdapter
|
||||
adapter = RealtimeAdapter(object(), model=model, voice=voice)
|
||||
assert adapter.is_no_active(CAPTURED_NO_ACTIVE) is accepted
|
||||
assert not adapter.is_no_active(dict(CAPTURED_NO_ACTIVE, code="other"))
|
||||
assert not adapter.is_no_active(dict(CAPTURED_NO_ACTIVE, param="response_id"))
|
||||
Reference in New Issue
Block a user