ChatCompletionStreamManager object does not support the asynchronous context manager protocol #1639
Closed
1 task done
Labels
documentation
Improvements or additions to documentation
Confirm this is an issue with the Python library and not an underlying OpenAI API
Describe the bug
The docs here say that the following should be possible
However, this gives
TypeError: 'ChatCompletionStreamManager' object does not support the asynchronous context manager protocol
When I run without async it works fine ie
To Reproduce
Run the above code snippet which is the beta async chat_completion (and should handle the new pydantic parsing)
Code snippets
OS
macOS
Python version
Python 3.11-3.12
Library version
1.40.4
The text was updated successfully, but these errors were encountered: