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

error caused by difference in prediction version in webhook vs prediction payload

Open carlpeaslee opened this issue 2 years ago • 0 comments

Original post from Slack:

image

https://replicatehq.slack.com/archives/C04AXJ6BR34/p1687821981253489

This was resolved temporarily with this workaround:

from replicate.prediction import Prediction as OriginalPrediction
from pydantic import Field
class Prediction(OriginalPrediction):
    version: str = Field(..., description="Version field")

thanks @anotherjesse for the help here.

carlpeaslee avatar Jun 28 '23 00:06 carlpeaslee