Skip to content

Commit

Permalink
Small doc fix for FastAPI section (#253)
Browse files Browse the repository at this point in the history
  • Loading branch information
waseemhnyc authored Dec 6, 2023
1 parent af6543c commit ba1070a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/concepts/fastapi.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ def endpoint_function(data: UserData) -> UserDetail:
`FastAPI` supports streaming responses, which is useful for returning large amounts of data. This feature is particularly useful when working with large language models (LLMs) that generate a large amount of data.

```python hl_lines="6-7"
from fastapi import StreamingResponse
from fastapi.responses import StreamingResponse
from typing import Iterable

# Route to handle SSE events and return users
@app.post("/extract", response_class=StreamingResponse)
Expand Down

0 comments on commit ba1070a

Please sign in to comment.