lib/hugging_face/base_api.rb in hugging-face-0.2.0 vs lib/hugging_face/base_api.rb in hugging-face-0.3.0

- old
+ new

@@ -13,10 +13,10 @@ } end private - def connection(url) + def build_connection(url) Faraday.new(url, headers: @headers) end def request(connection:, input:) response = connection.post { |req| req.body = input.to_json }