We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07a43f8 commit 18cad94Copy full SHA for 18cad94
tools/server/tests/unit/test_compat_oai_responses.py
@@ -42,8 +42,8 @@ def test_responses_stream_with_openai_library():
42
43
gathered_text = ''
44
for r in stream:
45
- if type(r) == openai.types.responses.response_text_delta_event.ResponseTextDeltaEvent:
+ if r.type == "response.output_text.delta":
46
gathered_text += r.delta
47
- if type(r) == openai.types.responses.response_completed_event.ResponseCompletedEvent:
+ if r.type == "response.completed":
48
assert gathered_text == r.response.output_text
49
assert match_regex("(Suddenly)+", r.response.output_text)
0 commit comments