Module: GeminiAI
- Defined in:
- lib/core/errors.rb,
lib/gemini.rb,
lib/core/client.rb,
lib/core/version.rb,
lib/utils/loader.rb,
lib/utils/logger.rb,
lib/mac/mac_utils.rb,
lib/utils/moderation.rb
Overview
SPDX-License-Identifier: MIT Copyright © 2026 friday_gemini_ai
Defined Under Namespace
Modules: MacUtils, Utils Classes: APIError, AuthenticationError, Client, Error, InvalidRequestError, NetworkError, RateLimitError
Constant Summary collapse
- VERSION =
'1.6.0'
Class Method Summary collapse
-
.load_env(file_path = '.env') ⇒ Object
Load environment variables.
-
.new(api_key = nil, model: :pro) ⇒ Object
Convenience method to create a new client.
Class Method Details
.load_env(file_path = '.env') ⇒ Object
Load environment variables
20 21 22 |
# File 'lib/gemini.rb', line 20 def self.load_env(file_path = '.env') Utils::Loader.load(file_path) end |
.new(api_key = nil, model: :pro) ⇒ Object
Convenience method to create a new client
15 16 17 |
# File 'lib/gemini.rb', line 15 def self.new(api_key = nil, model: :pro) Client.new(api_key, model: model) end |