# (Possible bug) --enable-prompt-tokens-details not working?

**URL:** <https://discuss.vllm.ai/t/possible-bug-enable-prompt-tokens-details-not-working/2690>\
**Category:** General\
**Created:** [June 2, 2026, 12:54am UTC](https://discuss.vllm.ai/t/possible-bug-enable-prompt-tokens-details-not-working/2690 "2026-06-02T00:54:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tran](https://avatars.discourse-cdn.com/v4/letter/t/dec6dc/32.png) [@tran](https://discuss.vllm.ai/u/tran)\
**Post date:** [June 2, 2026, 12:54am UTC](https://discuss.vllm.ai/t/possible-bug-enable-prompt-tokens-details-not-working/2690/1 "2026-06-02T00:54:40Z")

</div>

My goal is seeing prompt\_tokens\_details.cached\_tokens at the end of a response. VLLM shows null, but I found the --enable-prompt-tokens-details in the doc, so I tried that.

```auto

vllm serve /workspace/model \
--enforce-eager \ 
--enable-prefix-caching \
--host 0.0.0.0 \
--port 8000 \
--gpu-memory-utilization 0.8 \
--enable-prompt-tokens-details

```

Despite this, the response still has `"prompt_tokens_details": null`

Is this a bug? If so, where do I report it?

EDIT: I am running vllm 0.22.1rc1.dev32+gde2186341.d20260601 , built only an hour ago. I was previously running a 1-month-old version, but updated VLLM to be certain I could reproduce it in latest codebase before creating this topic. So if this is a bug, this isn’t some recent regression.

---

<div class="post-metadata">

**Author:** ![RunLLM](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.vllm.ai/runllm/32/233_2.png) [@RunLLM](https://discuss.vllm.ai/u/RunLLM)\
**Post date:** [June 2, 2026, 12:54am UTC](https://discuss.vllm.ai/t/possible-bug-enable-prompt-tokens-details-not-working/2690/2 "2026-06-02T00:54:58Z")

</div>

Yes, this is a known bug. Even with --enable-prompt-tokens-details, the response’s prompt\_tokens\_details field is often null in recent vLLM versions. This issue has been reported and tracked in multiple places, including [this GitHub issue](https://github.com/vllm-project/vllm/issues/16162) and [another related report](https://github.com/vllm-project/vllm/issues/18062). The maintainers have acknowledged the bug and are working on fixes.

You should report such bugs on the [vLLM GitHub issues page](https://github.com/vllm-project/vllm/issues), providing your environment details and command line. Would you like more detail on workarounds or the current status of the fix?

Sources:

- [Bug: --enable-prompt-tokens-details not working in V1](https://github.com/vllm-project/vllm/issues/16162)
- [Bug: The prompt\_tokens\_details in usage is always None](https://github.com/vllm-project/vllm/issues/18062)

Hint: Mention @RunLLM in the post for followups.

---

<div class="post-metadata">

**Author:** ![doItNow2025yy](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.vllm.ai/doitnow2025yy/32/1645_2.png) [@doItNow2025yy](https://discuss.vllm.ai/u/doItNow2025yy)\
**Post date:** [August 13, 2026, 7:23am UTC](https://discuss.vllm.ai/t/possible-bug-enable-prompt-tokens-details-not-working/2690/3 "2026-08-13T07:23:36Z")

</div>

@RunLLM what is the current status of the fix
