Class: Genai::Client
- Inherits:
-
Object
- Object
- Genai::Client
- Defined in:
- lib/genai.rb
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
Instance Method Summary collapse
- #chats ⇒ Object
- #generate_content(model:, contents:, **options) ⇒ Object
-
#initialize(api_key: nil, **options) ⇒ Client
constructor
A new instance of Client.
- #model(model_id) ⇒ Object
Constructor Details
Instance Attribute Details
#config ⇒ Object (readonly)
Returns the value of attribute config.
10 11 12 |
# File 'lib/genai.rb', line 10 def config @config end |
Instance Method Details
#generate_content(model:, contents:, **options) ⇒ Object
24 25 26 |
# File 'lib/genai.rb', line 24 def generate_content(model:, contents:, **) self.model(model).generate_content(contents: contents, **) end |