Skip to content

Commit 455e61a

Browse files
Cleanup
1 parent 89e0cbf commit 455e61a

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

lib/openai/client.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,6 @@ def self.to_json(string)
103103
# data: [DONE]
104104

105105
# Only call the user_proc if the chunk contains a JSON object.
106-
# throw chunk.scan(/(?:data|error): (\{.*\})/i).flatten
107106
chunk.scan(/(?:data|error): (\{.*\})/i).flatten.each do |data|
108107
user_proc.call(JSON.parse(data))
109108
rescue JSON::ParserError

0 commit comments

Comments
 (0)