mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #332] [CLOSED] serve: add a standalone API request monitor #2581
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#2581
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/332
Author: @KadoBOT
Created: 10/1/2026
Status: ❌ Closed
Base:
main← Head:contrib/api-request-monitor📝 Commits (1)
58e8184serve: add standalone API request monitor📊 Changes
5 files changed (+456 additions, -3 deletions)
View changed files
📝
docs/DETAILS.md(+14 -0)📝
serve/server.py(+124 -3)➕
serve/test_monitor.py(+170 -0)➕
serve/web/monitor.html(+37 -0)➕
serve/web/monitor.js(+111 -0)📄 Description
The existing Monitor tab shows engine and hardware statistics, but API clients cannot inspect a particular request's input, answer, reasoning, or end-to-end latency. This adds a standalone
/api-monitorpage and request-inspection endpoints, without requiring a chat session.Behavior
GET /api/requestsandGET /api/requests?id=<id>with the existing API-key check. History contains sensitive input/output, so the documentation recommends configuring a key before exposing it on a network./loadand/unloadcontrols. The page uses relative URLs and the existing UI theme tokens; captured text is rendered withtextContentrather than HTML.This PR is independent of the lazy-startup and JSON-response-format contributions. It does not change native inference or claim a performance improvement.
Validation
python -m unittest discover -s serve -p "test_*.py" -v— 86 tests, OK, 3 optional tests skipped.node --check serve/web/monitor.js, Python compilation, andgit diff --checkpassed.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.