lib/mistral_client/client.rb in mistral_client-2.0.0 vs lib/mistral_client/client.rb in mistral_client-3.0.0
- old
+ new
@@ -62,10 +62,10 @@
headers = if json
{ 'Content-Type' => 'application/json' }
else
{ 'Content-Type' => 'text/plain' }
end
- options = @http_options.merge(headers: headers, body: body)
+ options = @http_options.merge(headers:, body:)
resp = HTTParty.send(verb, "#{@base}/#{path}", options)
check_for_error(resp)
JSON.parse(resp.body)
end