Skip to content

Commit

Permalink
Conditionally require faraday/multipart
Browse files Browse the repository at this point in the history
Only Require Faraday Multipart if Faraday Version is greater than
2 because Faraday V1 includes the gem already.

#392
  • Loading branch information
ajGingrich committed Dec 1, 2023
1 parent 80da193 commit 85a63ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/openai.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
require "faraday"
require "faraday/multipart"
require "faraday/multipart" if Gem::Version.new(Faraday::VERSION) >= Gem::Version.new('2.0')

require_relative "openai/http"
require_relative "openai/client"
Expand Down

0 comments on commit 85a63ef

Please sign in to comment.