class Riffer::Providers::Gemini::Client
Riffer.config.gemini.client accepts any object implementing post and post_stream (see Riffer::HTTP::Client); this class is the default, not a required base.
Constants
- DEFAULT_BASE_URL
-
@rbs @api_key: String @rbs @base_url: String
Public Class Methods
Source
# File lib/riffer/providers/gemini/client.rb, line 14 def initialize(api_key:, base_url: DEFAULT_BASE_URL, headers: {}, connection: nil) super(headers: headers, connection: connection) @api_key = api_key @base_url = base_url.chomp("/") end
Calls superclass method
Riffer::HTTP::Client::new