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.
This commit is contained in:
psychedelicious
2025-10-12 14:07:31 +11:00
parent bd4bb075a5
commit ceb3ef38ed

View File

@@ -53,7 +53,10 @@ dependencies = [
# Core application dependencies, pinned for reproducible builds.
"fastapi-events",
"fastapi",
# FastAPI 0.119.0 breaks OpenAPI schema generation for the AnyInvocation class. It's not clear if this is an Invoke,
# FastAPI or pydantic bug. Probably Invoke's, because we are doing something unusual with AnyInvocation. 0.118.3 is
# the last known-good version.
"fastapi== 0.118.3",
"huggingface-hub",
"pydantic-settings",
"pydantic",