Class: GeminiCache::Configuration
- Inherits:
-
Object
- Object
- GeminiCache::Configuration
- Defined in:
- lib/gemini_cache/configuration.rb
Overview
Configuration class for GeminiCache settings
Instance Attribute Summary collapse
-
#api_base_url ⇒ String
The base URL for the Gemini API.
-
#api_key ⇒ String
The API key for Gemini API.
-
#default_model ⇒ String
The default model to use.
-
#default_ttl ⇒ Integer
The default time-to-live in seconds.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
Initializes a new Configuration with default values.
Constructor Details
#initialize ⇒ Configuration
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_url ⇒ String
The base URL for the Gemini API
7 8 9 |
# File 'lib/gemini_cache/configuration.rb', line 7 def api_base_url @api_base_url end |
#api_key ⇒ String
The API key for Gemini API
7 8 9 |
# File 'lib/gemini_cache/configuration.rb', line 7 def api_key @api_key end |
#default_model ⇒ String
The default model to use
7 8 9 |
# File 'lib/gemini_cache/configuration.rb', line 7 def default_model @default_model end |
#default_ttl ⇒ Integer
The default time-to-live in seconds
7 8 9 |
# File 'lib/gemini_cache/configuration.rb', line 7 def default_ttl @default_ttl end |