mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-17 08:59:51 +00:00
fix(responses): fixes, re-record tests and enable CI for responses
This commit is contained in:
parent
8e7e0ddfec
commit
212afa07f7
13 changed files with 8925 additions and 2 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue