Even though you can fetch the model, it does not accept the version that it fetched:


I verified that I can access this model with my API Key and Account via a cURL request, so the problem shouldn't be on my end.
I assume this comes from the fact that it cannot verify the version via the Replicate.Models.get_version!(model, version_string) call:

Here's the code from iex:
m = Replicate.Models.get!("black-forest-labs/flux-1.1-pro")
p = Replicate.Predictions.create("black-forest-labs/flux-1.1-pro:48a1467f83bbf2d13aa60eea3db52fb2ed7020eb543d6b20917981cf6bcdc40e", prompt: "A frog")
I'll be taking a look into the codebase on Friday to see if I can fork it and fix it myself. I'll create a PR if I succeed.
Side note: I don't quite understand, why the version is required for creating predictions. I understand, that you would want the option to specify it, but imo this should be an optional parameter.
Even though you can fetch the model, it does not accept the version that it fetched:
I verified that I can access this model with my API Key and Account via a cURL request, so the problem shouldn't be on my end.
I assume this comes from the fact that it cannot verify the version via the
Replicate.Models.get_version!(model, version_string)call:Here's the code from iex:
I'll be taking a look into the codebase on Friday to see if I can fork it and fix it myself. I'll create a PR if I succeed.
Side note: I don't quite understand, why the version is required for creating predictions. I understand, that you would want the option to specify it, but imo this should be an optional parameter.