replicate-go icon indicating copy to clipboard operation
replicate-go copied to clipboard

official models should be able to run without version

Open junsred opened this issue 9 months ago • 2 comments

the model does not seem to have a version

output, err := client.Run(ctx, "black-forest-labs/flux-schnell", inputData, nil)

error: failed to run model: version must be specified

junsred avatar Apr 26 '25 15:04 junsred

It seems similar to https://github.com/replicate/replicate-go/issues/75

rmznkapar avatar Apr 30 '25 10:04 rmznkapar

https://replicate.com/black-forest-labs/flux-schnell/examples?input=python API example for python clearly shows that model should simply run without a model version

output = replicate.run(
    "black-forest-labs/flux-schnell",
    input={
        "prompt": "black forest gateau cake spelling out the words \"FLUX SCHNELL\", tasty, food photography, dynamic shot",
        "go_fast": True,
        "num_outputs": 1,
        "aspect_ratio": "1:1",
        "output_format": "webp",
        "output_quality": 80
    }
)
print(output)

to be consistent with other libraries i would expect this library to work the same way.

junsred avatar Apr 30 '25 11:04 junsred