How to validate requests in ray-serve

How can I validate requests in RayServe like its done in FastAPI with validation errors etc and return appropriate response code?

Can anyone please provide some thoughts on this. @Phillip?

1 Like

Hi @dashsatish, you can use Ray Serve together with FastAPI:

Essentially, you use FastAPI as usual, and use Ray Serve’s ServeHandles to offload the computation.

1 Like

Hi @architkulkarni Thanks. All we are building is a very IO intensive micro-service. I think Raycore features would suffice while handling requests from uvicorn & fastapi