Disallow unions in dataclass messages, move check to creation instead of usage (#499)

* Disallow unions in dataclass messages, move check to creation instead of usage

* make image serializable by pydantic

* fixup team one

* update lockfile

* fix

* fix dataclass checking bug

* fix mypy
This commit is contained in:
Jack Gerrits
2024-09-16 12:37:26 -04:00
committed by GitHub
parent 747054aec8
commit 561897b4ee
13 changed files with 198 additions and 35 deletions

View File

@@ -18,7 +18,7 @@ dependencies = [
"pillow",
"aiohttp",
"typing-extensions",
"pydantic>=1.10,<3",
"pydantic<3.0.0,>=2.0.0",
"grpcio~=1.62.0",
"protobuf~=4.25.1",
"tiktoken",