We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 25b08b3 commit 72a8553Copy full SHA for 72a8553
vllm_omni/entrypoints/openai/api_server.py
@@ -631,6 +631,14 @@ def Omnispeech(request: Request) -> OmniOpenAIServingSpeech | None:
631
return request.app.state.openai_serving_speech
632
633
634
+# Remove the original /v1/chat/completions route before registering our own
635
+# This prevents duplicate route registration warnings in FastAPI logs.
636
+for route in router.routes[:]:
637
+ if hasattr(route, "path") and route.path == "/v1/chat/completions":
638
+ router.routes.remove(route)
639
+ break
640
+
641
642
@router.post(
643
"/v1/chat/completions",
644
dependencies=[Depends(validate_json_request)],
0 commit comments