Stream responses with Langchain and ChatGPT

Hi all - I’m using the gpt-3.5 turbo model with Langchain in NodeJS, and I am trying to stream responses. I tried passing in stream: true to the OpenAI Langchain model but regardless of where I put that parameter, I just get the response in bulk rather than streamed; has anyone else been able to get this working in Javascript?

1 Like