Skip to content

docs: document usage object in server timings response#23110

Merged
ServeurpersoCom merged 2 commits into
ggml-org:masterfrom
julien-c:docs/server-usage-object
May 15, 2026
Merged

docs: document usage object in server timings response#23110
ServeurpersoCom merged 2 commits into
ggml-org:masterfrom
julien-c:docs/server-usage-object

Conversation

@julien-c

Copy link
Copy Markdown
Contributor

Overview

document usage object in chat completion server response

Spec

Requirements

Co-Authored-By: julien-agent <Agents+cyolo@huggingface.co>
@julien-c
julien-c requested a review from a team as a code owner May 15, 2026 16:16
@julien-c

Copy link
Copy Markdown
Contributor Author

(reference #19361)

Comment thread tools/server/README.md
Comment on lines +1327 to +1336
```js
"usage": {
"completion_tokens": 48,
"prompt_tokens": 44,
"total_tokens": 92,
"prompt_tokens_details": {
"cached_tokens": 0
}
},
```

@ngxson ngxson May 15, 2026

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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
    }
  }
}

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes done in f0778d8

Comment thread tools/server/README.md Outdated
@ServeurpersoCom
ServeurpersoCom merged commit 6831fe4 into ggml-org:master May 15, 2026
4 checks passed
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
)

* 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>
(cherry picked from commit 6831fe4)
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants