We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
JSON#fast_generate
1 parent a6c7609 commit 3be700fCopy full SHA for 3be700f
Rakefile
@@ -31,7 +31,7 @@ multitask(:test) do
31
.map { "require_relative(#{_1.dump});" }
32
.join
33
34
- ruby(*%w[-e], rb, verbose: false) { fail unless _1 }
+ ruby(*%w[-w -e], rb, verbose: false) { fail unless _1 }
35
end
36
37
rubo_find = %w[find ./lib ./test ./rbi -type f -and ( -name *.rb -or -name *.rbi ) -print0]
lib/openai/internal/util.rb
@@ -493,7 +493,7 @@ class << self
493
y << val.to_s
494
else
495
y << "Content-Type: application/json\r\n\r\n"
496
- y << JSON.fast_generate(val)
+ y << JSON.generate(val)
497
498
y << "\r\n"
499
0 commit comments