Class: OmniAI::Google::Config
- Inherits:
-
Config
- Object
- Config
- OmniAI::Google::Config
- Defined in:
- lib/omniai/google/config.rb
Overview
Config for the Google ‘api_key` / `host` / `logger` / `version`, `chat_options`.
Instance Attribute Summary collapse
-
#chat_options ⇒ Object
Returns the value of attribute chat_options.
-
#version ⇒ Object
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
9 10 11 12 13 14 15 |
# File 'lib/omniai/google/config.rb', line 9 def initialize super @api_key = ENV.fetch('GOOGLE_API_KEY', nil) @host = ENV.fetch('GOOGLE_HOST', 'https://generativelanguage.googleapis.com') @version = ENV.fetch('GOOGLE_VERSION', 'v1') @chat_options = {} end |
Instance Attribute Details
#chat_options ⇒ Object
Returns the value of attribute chat_options.
7 8 9 |
# File 'lib/omniai/google/config.rb', line 7 def @chat_options end |
#version ⇒ Object
Returns the value of attribute version.
7 8 9 |
# File 'lib/omniai/google/config.rb', line 7 def version @version end |