Class: GeminiCache::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/gemini_cache/configuration.rb

Overview

Configuration class for GeminiCache settings

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Initializes a new Configuration with default values



11
12
13
14
15
# File 'lib/gemini_cache/configuration.rb', line 11

def initialize
  @api_base_url = 'https://generativelanguage.googleapis.com'
  @default_model = 'gemini-1.5-flash-8b'
  @default_ttl = 300
end

Instance Attribute Details

#api_base_urlString

The base URL for the Gemini API

Returns:

  • (String)

    the current value of api_base_url



7
8
9
# File 'lib/gemini_cache/configuration.rb', line 7

def api_base_url
  @api_base_url
end

#api_keyString

The API key for Gemini API

Returns:

  • (String)

    the current value of api_key



7
8
9
# File 'lib/gemini_cache/configuration.rb', line 7

def api_key
  @api_key
end

#default_modelString

The default model to use

Returns:

  • (String)

    the current value of default_model



7
8
9
# File 'lib/gemini_cache/configuration.rb', line 7

def default_model
  @default_model
end

#default_ttlInteger

The default time-to-live in seconds

Returns:

  • (Integer)

    the current value of default_ttl



7
8
9
# File 'lib/gemini_cache/configuration.rb', line 7

def default_ttl
  @default_ttl
end