Skip to content

Commit 86942c5

Browse files
committed
Fix arg
1 parent d3534c1 commit 86942c5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/openai/stream.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def initialize(user_proc:, parser: EventStreamParser::Parser.new)
1717
end
1818
end
1919

20-
def call(chunk, _bytes, env)
20+
def call(chunk, _bytes, env = nil)
2121
handle_http_error(chunk: chunk, env: env) if env && env.status != 200
2222

2323
parser.feed(chunk) do |event, data|

0 commit comments

Comments
 (0)