Skip to content

Commit

Permalink
Bugfix: Streaming response mode not adopted in some cases
Browse files Browse the repository at this point in the history
  • Loading branch information
timoklimmer committed Jul 8, 2024
1 parent 801ed92 commit 4072d96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/powerproxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ async def handle_request(request: Request, path: str):

# determine if it's actually an event stream or not
routing_slip["is_event_stream"] = (
"content-type" in aoai_response.headers and aoai_response.headers["content-type"] == "text/event-stream"
"content-type" in aoai_response.headers and "text/event-stream" in aoai_response.headers["content-type"]
)

# return different response types depending if it's an event stream or not
Expand Down

0 comments on commit 4072d96

Please sign in to comment.