Added middleware
Compare changes
+ 10
− 0
@@ -3,6 +3,7 @@ import asyncio
@@ -15,6 +16,15 @@ app = FastAPI(
Added an endpoint for invoking a response directly, circumventing the add_routes langserve method, to identify where the issue lies while deploying.
Result: Got the same error message regardless of using langserve or not, so added back in but kept the middleware.