From a5f89ae296c5c25c996eb0bb567f0d70e7577aff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?RickyChen=20/=20=E9=99=B3=E6=98=AD=E5=84=92?= Date: Mon, 12 Jan 2026 18:33:48 +0800 Subject: [PATCH] [Doc] Add documentation for offline API docs feature (#32134) Signed-off-by: rickychen-infinirc --- docs/serving/openai_compatible_server.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/serving/openai_compatible_server.md b/docs/serving/openai_compatible_server.md index 3020cb7b4..9d2b1e1ff 100644 --- a/docs/serving/openai_compatible_server.md +++ b/docs/serving/openai_compatible_server.md @@ -173,6 +173,14 @@ with `--enable-request-id-headers`. print(completion._request_id) ``` +## Offline API Documentation + +The FastAPI `/docs` endpoint requires an internet connection by default. To enable offline access in air-gapped environments, use the `--enable-offline-docs` flag: + +```bash +vllm serve NousResearch/Meta-Llama-3-8B-Instruct --enable-offline-docs +``` + ## API Reference ### Completions API