using JsonOutputParser with ChatOpenAI seems to be breaking streaming and returning only one chunk #7026
Labels
auto:bug
Related to a bug, vulnerability, unexpected error with an existing feature
Checked other resources
Example Code
When i switch from JsonOutputParser to StringOutputParser string works fine. Let me know if i am using the API wrong thanks!.
Error Message and Stack Trace (if applicable)
No error but just get a single chunk when i stream with JsonOutputParser
Description
I have the following code
I tried the exact same in python and streaming works there where i got multiple chunks of partial JSON responses back
When i switch from JsonOutputParser to StringOutputParser string works fine. Let me know if i am using the API wrong thanks!.
System Info
Using the latest version of langchain code (0.3.13) and openAi
The text was updated successfully, but these errors were encountered: