Class: RubyLLM::Provider
- Inherits:
-
Object
show all
- Defined in:
- lib/ruby_llm/pollinations/patches/provider_paint.rb
Instance Method Summary
collapse
Instance Method Details
#paint(prompt, model:, size:, **options) ⇒ Object
6
7
8
9
10
|
# File 'lib/ruby_llm/pollinations/patches/provider_paint.rb', line 6
def paint(prompt, model:, size:, **options)
payload = render_image_payload(prompt, model: model, size: size, **options)
response = @connection.post images_url, payload
parse_image_response(response, model: model)
end
|