Skip to content

Commit 8f87004

Browse files
committed
fix
1 parent d3c00c5 commit 8f87004

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/tests/openai/test_chat_completion.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@ def test_chat_completion_streaming(exporter, openai_client):
6363
}
6464

6565
chunk_count = 0
66-
with openai_client.chat.completions.create(**kwargs) as response:
67-
for _ in response:
68-
chunk_count += 1
66+
response = openai_client.chat.completions.create(**kwargs)
67+
for _ in response:
68+
chunk_count += 1
6969

7070
spans = exporter.get_finished_spans()
7171
streaming_span = spans[-1]

0 commit comments

Comments
 (0)