docs: document usage object in server timings response#23110
Merged
ServeurpersoCom merged 2 commits intoMay 15, 2026
Conversation
Co-Authored-By: julien-agent <Agents+cyolo@huggingface.co>
Contributor
Author
|
(reference #19361) |
ngxson
approved these changes
May 15, 2026
Comment on lines
+1327
to
+1336
| ```js | ||
| "usage": { | ||
| "completion_tokens": 48, | ||
| "prompt_tokens": 44, | ||
| "total_tokens": 92, | ||
| "prompt_tokens_details": { | ||
| "cached_tokens": 0 | ||
| } | ||
| }, | ||
| ``` |
Collaborator
There was a problem hiding this comment.
nits: maybe wrap it inside an outer {} so that it becomes a valid json?
{
"usage": {
"completion_tokens": 48,
"prompt_tokens": 44,
"total_tokens": 92,
"prompt_tokens_details": {
"cached_tokens": 0
}
}
}
julien-c
commented
May 15, 2026
ServeurpersoCom
approved these changes
May 15, 2026
dandm1
pushed a commit
to dandm1/llama.cpp
that referenced
this pull request
May 16, 2026
) * docs: document `usage` object in server timings response Co-Authored-By: julien-agent <Agents+cyolo@huggingface.co> * Apply suggestion from @julien-c --------- Co-authored-by: julien-agent <Agents+cyolo@huggingface.co>
ArberSephirotheca
pushed a commit
to ArberSephirotheca/llama.cpp
that referenced
this pull request
May 19, 2026
) * docs: document `usage` object in server timings response Co-Authored-By: julien-agent <Agents+cyolo@huggingface.co> * Apply suggestion from @julien-c --------- Co-authored-by: julien-agent <Agents+cyolo@huggingface.co>
baramofme
pushed a commit
to baramofme/llama-cpp-turboquant
that referenced
this pull request
May 23, 2026
) * docs: document `usage` object in server timings response Co-Authored-By: julien-agent <Agents+cyolo@huggingface.co> * Apply suggestion from @julien-c --------- Co-authored-by: julien-agent <Agents+cyolo@huggingface.co>
carlosfundora
pushed a commit
to carlosfundora/llama.cpp-1-bit-turbo
that referenced
this pull request
May 24, 2026
winstonma
pushed a commit
to winstonma/llama.cpp
that referenced
this pull request
May 27, 2026
) * docs: document `usage` object in server timings response Co-Authored-By: julien-agent <Agents+cyolo@huggingface.co> * Apply suggestion from @julien-c --------- Co-authored-by: julien-agent <Agents+cyolo@huggingface.co>
fewtarius
pushed a commit
to fewtarius/CachyLLama
that referenced
this pull request
May 30, 2026
) * docs: document `usage` object in server timings response Co-Authored-By: julien-agent <Agents+cyolo@huggingface.co> * Apply suggestion from @julien-c --------- Co-authored-by: julien-agent <Agents+cyolo@huggingface.co>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
document
usageobject in chat completion server responseSpec
Requirements