mirror of
https://github.com/kennethreitz/instructor.git
synced 2026-06-05 22:50:18 +00:00
typo
This commit is contained in:
@@ -49,6 +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
|
||||
|
||||
# Route to handle SSE events and return users
|
||||
@app.post("/extract", response_class=StreamingResponse)
|
||||
async def extract(data: UserData):
|
||||
|
||||
Reference in New Issue
Block a user