mirror of
https://github.com/hwchase17/langchain
synced 2024-11-10 01:10:59 +00:00
a682f0d12b
**Description:** Use the `Stream` context managers in `ChatOpenAi` `stream` and `astream` method. Using the context manager returned by the OpenAI client makes it possible to terminate the stream early since the response connection will be closed when the context manager exists. **Issue:** #5340 **Twitter handle:** @snopoke --------- Co-authored-by: Bagatur <baskaryan@gmail.com> Co-authored-by: Bagatur <22008038+baskaryan@users.noreply.github.com> |
||
---|---|---|
.. | ||
chat_models | ||
embeddings | ||
llms | ||
output_parsers | ||
__init__.py | ||
py.typed |