chore(ml): update pydantic (#13230)

* update pydantic

* fix typing

* remove unused import

* remove unused schema
This commit is contained in:
Mert 2024-10-13 18:00:21 -04:00 committed by GitHub
parent f29fb1655a
commit e7397f35c9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 186 additions and 82 deletions

View file

@ -1,9 +1,9 @@
from enum import Enum
from typing import Any, Literal, Protocol, TypedDict, TypeGuard, TypeVar
from typing import Any, Literal, Protocol, TypeGuard, TypeVar
import numpy as np
import numpy.typing as npt
from pydantic import BaseModel
from typing_extensions import TypedDict
class StrEnum(str, Enum):
@ -13,14 +13,6 @@ class StrEnum(str, Enum):
return self.value
class TextResponse(BaseModel):
__root__: str
class MessageResponse(BaseModel):
message: str
class BoundingBox(TypedDict):
x1: int
y1: int