Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Pydantic v1 incompatibility #1622

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Commits on May 2, 2024

  1. Relax dependency constraints to allow Pydantic 2.x

    Signed-off-by: Mattt Zmuda <mattt@replicate.com>
    mattt authored and technillogue committed May 2, 2024
    Configuration menu
    Copy the full SHA
    30efdcf View commit details
    Browse the repository at this point in the history
  2. Use conditional import to Pydantic v1 shim for ErrorWrapper

    Signed-off-by: Mattt Zmuda <mattt@replicate.com>
    mattt authored and technillogue committed May 2, 2024
    Configuration menu
    Copy the full SHA
    7155de0 View commit details
    Browse the repository at this point in the history
  3. Fix warning: Condition will always evaluate to False since the types …

    …PredictionRequest and None have no overlap
    
    Signed-off-by: Mattt Zmuda <mattt@replicate.com>
    mattt authored and technillogue committed May 2, 2024
    Configuration menu
    Copy the full SHA
    f76a158 View commit details
    Browse the repository at this point in the history
  4. Apply conditional pydantic import to tests

    Signed-off-by: Mattt Zmuda <mattt@replicate.com>
    mattt authored and technillogue committed May 2, 2024
    Configuration menu
    Copy the full SHA
    7e905f5 View commit details
    Browse the repository at this point in the history
  5. Use replicate fork of fastapi

    Signed-off-by: Mattt Zmuda <mattt@replicate.com>
    mattt authored and technillogue committed May 2, 2024
    Configuration menu
    Copy the full SHA
    8c7e4f9 View commit details
    Browse the repository at this point in the history
  6. Update expected OpenAPI version

    Signed-off-by: Mattt Zmuda <mattt@replicate.com>
    mattt authored and technillogue committed May 2, 2024
    Configuration menu
    Copy the full SHA
    1119227 View commit details
    Browse the repository at this point in the history
  7. Remove use of ErrorWrapper

    Signed-off-by: Mattt Zmuda <mattt@replicate.com>
    mattt authored and technillogue committed May 2, 2024
    Configuration menu
    Copy the full SHA
    a42f280 View commit details
    Browse the repository at this point in the history
  8. Update bare import of pydantic to use v1 shim

    Signed-off-by: Mattt Zmuda <mattt@replicate.com>
    mattt authored and technillogue committed May 2, 2024
    Configuration menu
    Copy the full SHA
    6806ca6 View commit details
    Browse the repository at this point in the history