Skip to content

Commit 0072056

Browse files
committed
fix(stream): EventSource ignores use_file_output=False due to boolean-or default
1 parent d2956ff commit 0072056

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

replicate/stream.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def __init__(
7676
) -> None:
7777
self.client = client
7878
self.response = response
79-
self.use_file_output = use_file_output or True
79+
self.use_file_output = use_file_output if use_file_output is not None else True
8080
content_type, _, _ = response.headers["content-type"].partition(";")
8181
if content_type != "text/event-stream":
8282
raise ValueError(

0 commit comments

Comments
 (0)