#streamingresponse
FastAPI 0.118.0 was just released 🎁

🐛 This fixes a bug when using a StreamingResponse and dependencies with yield or UploadFile.

Details: Now the exit code of dependencies with yield runs after the response is sent back.

If you want to read more: fastapi.tiangolo.com/advanced/adv...
Advanced Dependencies - FastAPI
FastAPI framework, high performance, easy to learn, fast to code, ready for production
fastapi.tiangolo.com
September 29, 2025 at 4:07 AM
I still don't have a good mental model of what it _means_, tbh :)

but I know @jimmyvanveen.com has asked for something along those lines, and github.com/reduxjs/redu... is a similar issue.
Handle StreamingResponse and Server-Sent Events · Issue #3701 · reduxjs/redux-toolkit
Use Case I want to display a Progress bar for process running in the backend. I am also writing the API so I can make it anything: a streaming response, SSE or even a websocket. I managed to make r...
github.com
April 25, 2025 at 1:16 AM
今日のZennトレンド

【Langgraph+FastAPI】LanggraphのAPI化の技術選定で苦戦した話
LanggraphアプリのAPI化で、当初WebSocketを用いたが、CloudRunのタイムアウトやコスト、UXの課題からSSEへ移行した。
SSEは一方向通信で実装が容易であり、OpenAI APIのStreamingと同様の体験を提供できる。
実装では、FastAPIでStreamingResponseを利用し、Langgraphの出力をyieldで指定。
フロントエンド側では、ストリームデータを順次処理する。
【Langgraph+FastAPI】LanggraphのAPI化の技術選定で苦戦した話
はじめにMLエンジニアのふるです。今日は珍しく、MLエンジニアらしいAPI化の技術選定(笑)について話していこうと思います。今回はLanggraphの説明の詳細は省き、LanggraphアプリをAPI提供する場合の技術選定について、困ったことを書いていこうと思います。 背景Langgraphでは、LLMのマルチエージェントもしくはマルチワークフローを構築する際に、forループで出力する箇所があり
zenn.dev
January 26, 2025 at 9:10 AM
Next, the Get function. Set up a route to stream data from the server to the client using StreamingResponse with text/event_stream.
January 16, 2025 at 2:23 PM