python FastAPI Releases · · 0.140.13

FastAPI 0.140.13: Fixes SSE/JSONL status code, improves docs

sdkmediapython-web
patch

FastAPI version 0.140.13 addresses a bug where the `status_code` parameter was not respected for Server-Sent Events (SSE) and JSONL streaming endpoints. This patch also includes documentation improvements, specifically correcting the rendering of terminators in `format_sse_event` docstrings and adding an API reference page for `fastapi.sse`. The release focuses on bug fixes and documentation enhancements for developers using SSE or JSONL streaming.

  • 🐛 Fix status_code being ignored for SSE and JSONL streaming endpoints. PR #15937 by @SAURABHSALVE
  • 📝 Fix format_sse_event docstring rendering of \n\n terminator. PR #15613 by @AshNicolus
  • 📝 Add API reference page for fastapi.sse. PR #15930 by @SAURABHSALVE
Fixes (1)
  • 🐛 Fix status_code being ignored for SSE and JSONL streaming endpoints. PR #15937 by @SAURABHSALVE
Maintenance (2)
  • 📝 Fix format_sse_event docstring rendering of \n\n terminator. PR #15613 by @AshNicolus
  • 📝 Add API reference page for fastapi.sse. PR #15930 by @SAURABHSALVE
Read the original announcement →

https://github.com/fastapi/fastapi/releases/tag/0.140.13

Related releases