replicate/replicate-javascript

How can I get an input from prediction result?

ZeroCho opened this issue · 1 comments

I'm using replicate.run for running image models, and their outputs don't have info for input parameter values used for image generation. Is there a way to get those input values from response? Or do I have to save input myself before running prediction, and use it after prediction?

I found that replicate.predictions.create and replicate.predictions.get return value give me back my input, but replicate.run doesn't.

Oh, I found out the source code of of replicate.run and it is just a wrapper for predictions.create.
I think I have to create my own implementation for replicate.run