mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #3291] [CLOSED] [Engine] serve: report timings on /v1/responses #4552
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#4552
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/3291
Author: @pschaub
Created: 10/19/2026
Status: ❌ Closed
Base:
main← Head:serve-responses-timings📝 Commits (1)
bc9c42eserve: report timings on /v1/responses like /v1/chat/completions📊 Changes
2 files changed (+24 additions, -2 deletions)
View changed files
📝
serve/responses.py(+11 -2)📝
serve/test_server.py(+13 -0)📄 Description
Problem and result
/v1/chat/completions returns top-level
timings(#107), but /v1/responses (#451) does not, although server.py already computes them for every request. Now the finalresponse.completed/response.incompleteevent and the non-streaming reply include the sametimingsobject.Related discussion
Follow-up to #107 (based on #83) for /v1/responses.
Approach
_with_timingsin serve/responses.py copiesdone["timings"]onto the final event;collect()keeps it on the non-streaming reply. Nothing else changes.Validation
Passed:
python -m unittest discover -s serve -t . -p "test_*.py"on this branch (one commit on maine88ee39), Windows 11, Python 3.12: 882 tests OK, 20 skipped. The same command on maine88ee39without the change: 881 tests OK, 20 skipped.UsageAndStatus.test_responsesfails without the change.e88ee39(Windows 11, CUDA): the final event of streamed /v1/responses requests carries timings; without the change it does not.Failed:
none observed
Not run:
Limits
response.failedcarries no timings.Created with Claude Opus 5.5. The result was verified by a human (me) in llama-swap: prompt and decode speeds now show for /v1/responses requests.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.