Class: SavvyOpenrouter::Resources::Generations
- Inherits:
-
Base
- Object
- Base
- SavvyOpenrouter::Resources::Generations
show all
- Defined in:
- lib/savvy_openrouter/resources/generations.rb
Instance Method Summary
collapse
Methods inherited from Base
#initialize
Instance Method Details
#content(**params) ⇒ Object
14
15
16
17
18
|
# File 'lib/savvy_openrouter/resources/generations.rb', line 14
def content(**params)
conn.with_call_context(endpoint: "generation_content", logical_model: nil) do
conn.get("/generation/content", params: params)
end
end
|
#get(id:) ⇒ Object
8
9
10
11
12
|
# File 'lib/savvy_openrouter/resources/generations.rb', line 8
def get(id:)
conn.with_call_context(endpoint: "generation", logical_model: nil) do
conn.get("/generation", params: { id: id })
end
end
|