Skip to content

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

Closed
@carlpeaslee

Description

@carlpeaslee

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions