replicate/replicate-python

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

carlpeaslee opened this issue · 1 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.