Skip to content

Commit

Permalink
Fixed OpenAI tests (#2834)
Browse files Browse the repository at this point in the history
This will prevent the streaming reponse OpenAI tests to fail.
  • Loading branch information
antonpirker authored Mar 18, 2024
1 parent 16d25e2 commit ab0c32e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/integrations/openai/test_openai.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def test_streaming_chat_completion(
events = capture_events()

client = OpenAI(api_key="z")
returned_stream = Stream(cast_to=None, response=None, client=None)
returned_stream = Stream(cast_to=None, response=None, client=client)
returned_stream._iterator = [
ChatCompletionChunk(
id="1",
Expand Down

0 comments on commit ab0c32e

Please sign in to comment.