Closed okamiRvS closed 1 week ago
Hey, I think this is solved now.
I still see the absence of the asynco import in the second snippet of "streaming resppnse"
My bad, I just made a PR for that: https://github.com/openai/openai-python/pull/1858
thanks @baslia, this was fixed in #1858
Confirm this is an issue with the Python library and not an underlying OpenAI API
Describe the bug
Hi there,
I noticed a small typo in the example code provided in the README file. The code snippet uses asyncio.run(main()) but is missing the import statement for asyncio. This could cause confusion for users running the example as it will result in a NameError: name 'asyncio' is not defined.
To Reproduce
Here's the updated code with the necessary import:
Code snippets
No response
OS
-
Python version
-
Library version
-