Closed cirezd closed 11 months ago
Hi @cirezd , I am not aware of any backend configuration which might relate to your observations, I am afraid. If you can provide the code I could try to reproduce, though.
Thanks @sysid that already helps. We used a different method of parsing the input on the client side and now it is not an issue anymore. I was wondering about whether events get grouped together and send via one package, if the time between generated events is small. I use sse-starlette in the context of langchain and tokens arrive quite irregular from the LLMs.
Thanks for the feedback @cirezd , so I close the issue.
Hi, I have one issue on the client-side when using the API using this library/fastapi and I am unable to pin-point the issue. Sometimes I receive events grouped as one single event, like this:
instead of
Are there any settings or changes one can make to prevent this? In my generator I am actually yielding
ServerSentEvents
, so I believe it is not related to the generator itself, otherwise this wouldn't work. Any advice is appreciated!