We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d3534c1 commit 86942c5Copy full SHA for 86942c5
1 file changed
lib/openai/stream.rb
@@ -17,7 +17,7 @@ def initialize(user_proc:, parser: EventStreamParser::Parser.new)
17
end
18
19
20
- def call(chunk, _bytes, env)
+ def call(chunk, _bytes, env = nil)
21
handle_http_error(chunk: chunk, env: env) if env && env.status != 200
22
23
parser.feed(chunk) do |event, data|
0 commit comments