Ubuntu – FastAPI custom Validator Error: FastAPI/Pydantic not recognizing custom validator functions (RuntimeError: no validator found for <class>)
I'm working on a fastAPI project on an Amazon EC2 instance running Ubuntu 20.04.5. The nature of the project requires me to have several custom types (written by me) and third party types (from HuggingFace transformers, hf peft, Langchain) as…