fix(responses): fixes, re-record tests and enable CI for responses

This commit is contained in:
Ashwin Bharambe 2025-10-15 14:50:25 -07:00
parent 8e7e0ddfec
commit 212afa07f7
13 changed files with 8925 additions and 2 deletions

View file

@ -66,7 +66,9 @@ def test_response_streaming_basic(compat_client, text_model_id, case):
if chunk.type == "response.created":
# Verify response.created is emitted first and immediately
assert len(events) == 1, "response.created should be the first event"
assert event_times[0] < 0.1, "response.created should be emitted immediately"
assert event_times[0] < 0.2, (
f"response.created should be emitted immediately (took {event_times[0]} seconds)"
)
assert chunk.response.status == "in_progress"
response_id = chunk.response.id