From ceb3ef38edf15721d6abc7f29f3c398b310a4d67 Mon Sep 17 00:00:00 2001 From: psychedelicious <4822129+psychedelicious@users.noreply.github.com> Date: Sun, 12 Oct 2025 14:07:31 +1100 Subject: [PATCH] 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. --- pyproject.toml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 77cdd13db3..ac3d88b364 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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",