ajndkr / lanarky

The web framework for building LLM microservices
https://lanarky.ajndkr.com/
MIT License
976 stars 74 forks source link

Question: Support for SSE streaming via FastAPI endpoint? #111

Closed imraminradmand closed 1 year ago

imraminradmand commented 1 year ago

As a user, I want to send a request to a FastAPI endpoint and have the response from the LLM be streamed directly to the frontend. The follow goes as such:

I'm currently taking the response from the LLM, chunking and then streaming it but this is slow, and I need to speed it up.

I'm very new to using Lanarky, and haven't been able to make this work with the current available api docs. If this is an available feature I would appreciate any guidance on how to achieve this.