[Refactor] P0.2: Migrate API server helpers out of api_server (#5453)
Signed-off-by: herotai214 <herotai214@gmail.com>
This commit is contained in:
1 parent
aff7d64948
commit
bbac4df7d3
47 files changed
+2437
-1744
No files matched your search
@@ -0,0 +1,23 @@
|
||||
# Serve Utilities
|
||||
|
||||
This directory is for server/app utilities shared by Omni entrypoints.
|
||||
|
||||
## Put Here
|
||||
|
||||
- FastAPI app/router mutation helpers (`routes.remove_route_from_app`,
|
||||
`routes._remove_route_from_router`).
|
||||
- Server exception-handler registration.
|
||||
- Engine-failure helpers that are not owned by one endpoint family.
|
||||
|
||||
## Do Not Put Here
|
||||
|
||||
- Endpoint restriction *policy* (which routes a pipeline shuts down, and why).
|
||||
That stays in `vllm_omni.config.endpoint_policy`; the policy module should
|
||||
*call* `remove_route_from_app` from here, not redefine it.
|
||||
- OpenAI response-shape adapters. Those belong under
|
||||
`vllm_omni.entrypoints.openai`.
|
||||
- Modality validation or payload parsing.
|
||||
- Generic helpers without a clear server/app responsibility.
|
||||
|
||||
Keep this directory aligned with the spirit of upstream
|
||||
`vllm.entrypoints.serve.utils`. Broader utility cleanup is tracked by #5227.
|
||||
Reference in new issue
Block a user