langchain-openai 1.0.3 adds handling for response.incomplete events in message streaming mode.
$ git clone --branch langchain-openai==1.0.3 https://github.com/langchain-ai/langchain.git # already have the repo? check out this version: $ git checkout langchain-openai==1.0.3
- ›Handles the
response.incompleteevent when usingstream_mode=['messages'], preventing silent stream truncation.