Update openai_compatible_server.md (#11536)

Co-authored-by: Simon Mo <simon.mo@hey.com>
This commit is contained in:
Robert Shaw 2024-12-26 19:26:18 -05:00 committed by GitHub
parent 82d24f7aac
commit 0c0c2015c5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -112,7 +112,13 @@ completion = client.chat.completions.create(
## Extra HTTP Headers
Only `X-Request-Id` HTTP request header is supported for now.
Only `X-Request-Id` HTTP request header is supported for now. It can be enabled
with `--enable-request-id-headers`.
> Note that enablement of the headers can impact performance significantly at high QPS
> rates. We recommend implementing HTTP headers at the router level (e.g. via Istio),
> rather than within the vLLM layer for this reason.
> See https://github.com/vllm-project/vllm/pull/11529 for more details.
```python
completion = client.chat.completions.create(