Skip to content

Commit 59b8cbd

Browse files
kaygupamelafox
andauthored
set content-type for streamed response (#968)
* set content-type for streamed response * Changed to json lines --------- Co-authored-by: Pamela Fox <[email protected]>
1 parent 1a65c71 commit 59b8cbd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/backend/app.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ async def chat():
165165
else:
166166
response = await make_response(format_as_ndjson(result))
167167
response.timeout = None # type: ignore
168+
response.mimetype = "application/json-lines"
168169
return response
169170
except Exception as error:
170171
return error_response(error, "/chat")

0 commit comments

Comments
 (0)