Skip to content

Commit 6c5f254

Browse files
.
1 parent 3fe3499 commit 6c5f254

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

tests/integrations/openai/test_openai.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3018,7 +3018,9 @@ def test_streaming_chat_completion_ttft(sentry_init, capture_events):
30183018

30193019
with start_transaction(name="openai tx"):
30203020
response_stream = client.chat.completions.create(
3021-
model="some-model", messages=[{"role": "user", "content": "Say hello"}]
3021+
model="some-model",
3022+
messages=[{"role": "user", "content": "Say hello"}],
3023+
stream=True,
30223024
)
30233025
# Consume the stream
30243026
for _ in response_stream:
@@ -3082,7 +3084,9 @@ async def test_streaming_chat_completion_ttft_async(sentry_init, capture_events)
30823084

30833085
with start_transaction(name="openai tx"):
30843086
response_stream = await client.chat.completions.create(
3085-
model="some-model", messages=[{"role": "user", "content": "Say hello"}]
3087+
model="some-model",
3088+
messages=[{"role": "user", "content": "Say hello"}],
3089+
stream=True,
30863090
)
30873091
# Consume the stream
30883092
async for _ in response_stream:

0 commit comments

Comments
 (0)