We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
@model_id
1 parent 9b1dd71 commit e726f24Copy full SHA for e726f24
lib/ruby_llm/providers/replicate/images.rb
@@ -16,7 +16,7 @@ def images_url
16
end
17
18
def render_image_payload(prompt, model:, **params)
19
- self.model_id = model
+ self.model = model
20
21
{}.tap do |payload|
22
payload[:webhook] = @config.replicate_webhook_url
@@ -43,9 +43,8 @@ def fetch_image_blob(url)
43
44
private
45
46
- def model_id=(id)
47
- @model_id = id
48
- @model = RubyLLM::Models.find(@model_id, 'replicate')
+ def model=(id)
+ @model = RubyLLM::Models.find(id, 'replicate')
49
50
51
def official_model?
0 commit comments