replicate / replicate-go

Go client for Replicate
https://replicate.com
Apache License 2.0
65 stars 9 forks source link

how to run a model without version? #75

Closed cdreier closed 3 weeks ago

cdreier commented 4 weeks ago

Or how can i find the version for example for black-forest-labs/flux-schnell ?

Other models have a "versions" tab, seems like this is missing here?

AnwarChakhar commented 4 weeks ago

Hi, I was wondering about the same, having the "version must be specified" for now

mattt commented 4 weeks ago

Hi @cdreier @AnwarChakhar. Sorry for the confusion. The method you're looking for is CreatePredictionWithModel.

cdreier commented 3 weeks ago

thanks a lot, will test it and leave some feedback :+1:

AnwarChakhar commented 3 weeks ago

Thanks @mattt ! it's working perfectly on my side :)

mattt commented 3 weeks ago

Closing this as resolved.

@cdreier Let me know if you're having any problems with this, and I'll be happy to take a look.

oliverbenns commented 3 weeks ago

This needs documenting some more as I've been fumbling around trying to find llama versions (looking for a hash), putting in other billing details, asking on Replicate's discord and further debugging for this morning.

Also the examples on the readme, the stability-ai/sdxl example has a version, the incredibly-fast-whisper example has a version but no model name? Very confusing.