mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #114] [CLOSED] serve: report prefix reuse as usage.prompt_tokens_details.cached_tokens #2466
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#2466
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/114
Author: @Yunado
Created: 9/29/2026
Status: ❌ Closed
Base:
main← Head:feat/serve-cached-tokens📝 Commits (1)
e5c3d65serve: report prefix reuse as usage.prompt_tokens_details.cached_tokens📊 Changes
1 file changed (+1 additions, -0 deletions)
View changed files
📝
serve/server.py(+1 -0)📄 Description
The engine's per-request prefix reuse count already reaches the web Monitor and the internal DONE line; expose it in the OpenAI usage block under the standard
prompt_tokens_details.cached_tokensfield so any client can show prompt-cache hits. 0 when cold.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.