Module: GeminiAI
- Defined in:
- lib/gemini.rb,
lib/core/client.rb,
lib/core/errors.rb,
lib/core/version.rb,
lib/utils/loader.rb,
lib/utils/logger.rb
Defined Under Namespace
Modules: Utils Classes: APIError, AuthenticationError, Client, Error, InvalidRequestError, NetworkError, RateLimitError
Constant Summary collapse
- VERSION =
'0.1.4'
Class Method Summary collapse
-
.load_env(file_path = '.env') ⇒ Object
Load environment variables.
-
.new(api_key = nil, **options) ⇒ Object
Convenience method to create a new client.
Class Method Details
.load_env(file_path = '.env') ⇒ Object
Load environment variables
15 16 17 |
# File 'lib/gemini.rb', line 15 def self.load_env(file_path = '.env') Utils::Loader.load(file_path) end |
.new(api_key = nil, **options) ⇒ Object
Convenience method to create a new client
10 11 12 |
# File 'lib/gemini.rb', line 10 def self.new(api_key = nil, **) Client.new(api_key, **) end |