Skip to content

Commit ceb3ef3

Browse files
fix: schema generation bug in fastapi 0.119.0
Couldn't figure out a quick and easy fix. Needs some pydantic/FastAPI fanagling. For now, roll back to last good version.
1 parent bd4bb07 commit ceb3ef3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pyproject.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,10 @@ dependencies = [
5353

5454
# Core application dependencies, pinned for reproducible builds.
5555
"fastapi-events",
56-
"fastapi",
56+
# FastAPI 0.119.0 breaks OpenAPI schema generation for the AnyInvocation class. It's not clear if this is an Invoke,
57+
# FastAPI or pydantic bug. Probably Invoke's, because we are doing something unusual with AnyInvocation. 0.118.3 is
58+
# the last known-good version.
59+
"fastapi== 0.118.3",
5760
"huggingface-hub",
5861
"pydantic-settings",
5962
"pydantic",

0 commit comments

Comments
 (0)