lib/boxcars/engine/cohere.rb in boxcars-0.6.6 vs lib/boxcars/engine/cohere.rb in boxcars-0.6.7

- old
+ new

@@ -48,12 +48,9 @@ faraday.headers['Content-Type'] = 'application/json' end # Make the API call response = connection.post { |req| req.body = params.to_json } - - # response_data = JSON.parse(response.body, symbolize_names: true) - # response_data[:text] JSON.parse(response.body, symbolize_names: true) end # Get an answer from the engine. # @param prompt [String] The prompt to use when asking the engine.