We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8c7b70a commit 54f563aCopy full SHA for 54f563a
src/increase/_base_client.py
@@ -626,7 +626,7 @@ def _process_response_data(
626
627
def _process_stream_line(self, contents: str) -> str:
628
"""Pre-process an indiviudal line from a streaming response"""
629
- if contents == "data: [DONE]\n":
+ if contents.startswith("data: [DONE]"):
630
raise StopStreaming()
631
632
if contents.startswith("data: "):
0 commit comments