Class: SavvyOpenrouter::Resources::Generations

Inherits:
Base
  • Object
show all
Defined in:
lib/savvy_openrouter/resources/generations.rb

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from SavvyOpenrouter::Resources::Base

Instance Method Details

#content(**params) ⇒ Object



12
13
14
# File 'lib/savvy_openrouter/resources/generations.rb', line 12

def content(**params)
  conn.get("/generation/content", params: params)
end

#get(id:) ⇒ Object



8
9
10
# File 'lib/savvy_openrouter/resources/generations.rb', line 8

def get(id:)
  conn.get("/generation", params: { id: id })
end