Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions tests/live_provider/test_decorators.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ async def level_2_function():
temperature=0,
metadata={"someKey": "someResponse"},
stream=True,
stream_options={"include_usage": True},
)

with propagate_attributes(
Expand Down
5 changes: 5 additions & 0 deletions tests/live_provider/test_openai.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ def test_openai_chat_completion_stream(openai):
temperature=0,
metadata={"someKey": "someResponse"},
stream=True,
stream_options={"include_usage": True},
)

assert iter(completion)
Expand Down Expand Up @@ -159,6 +160,7 @@ def test_openai_chat_completion_stream_with_next_iteration(openai):
temperature=0,
metadata={"someKey": "someResponse"},
stream=True,
stream_options={"include_usage": True},
)

assert iter(completion)
Expand Down Expand Up @@ -664,6 +666,7 @@ async def test_async_chat_stream(openai):
model="gpt-4o-mini",
name=generation_name,
stream=True,
stream_options={"include_usage": True},
)

async for c in completion:
Expand Down Expand Up @@ -711,6 +714,7 @@ async def test_async_chat_stream_with_anext(openai):
model="gpt-4o-mini",
name=generation_name,
stream=True,
stream_options={"include_usage": True},
)

result = ""
Expand Down Expand Up @@ -1100,6 +1104,7 @@ async def test_close_async_stream(openai):
model="gpt-4o-mini",
name=generation_name,
stream=True,
stream_options={"include_usage": True},
)

async for token in stream:
Expand Down
Loading