Skip to content

Commit f4f9ba6

Browse files
committed
Fix deprecation warning for users of Faraday 1
1 parent c00583a commit f4f9ba6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/openai.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
require "faraday"
2-
require "faraday/multipart"
2+
require "faraday/multipart" if Gem::Version.new(Faraday::VERSION) >= Gem::Version.new("2.0")
33

44
require_relative "openai/http"
55
require_relative "openai/client"

0 commit comments

Comments
 (0)