feat(admin): add live key+model fallback telemetry and RAM-buffered live request log watcher
- Add TelemetryTracker to record request fallback journeys, tracking step-by-step cascades across tiers, candidate error codes, cooldowns, and next actions - Add LiveWatcher for RAM-only interactive request inspection with 250-item FIFO safety cap and automatic memory flush on toggle off - Add REST and SSE streaming endpoints for real-time telemetry and live request logs - Upgrade Admin Telemetry tab with visual fallback breadcrumbs and live key health matrix - Add dedicated Live Logs tab with deep multi-tab inspector (Input, Output, Metadata, Debug), search, filters, and JSON export - Add unit and integration tests (test-live-watcher.ts, test-telemetry-fallback.ts)
This commit is contained in:
parent
0e83233715
commit
299c5f4c9e
11 changed files with 2603 additions and 71 deletions
|
|
@ -163,7 +163,8 @@ Navigate to `http://localhost:3000/admin` in your web browser.
|
|||
- **Tier 2 (Fallback 2):** Additional fallbacks if defined.
|
||||
- Designate a **Default Model** to handle requests that omit or supply an unknown model identifier.
|
||||
4. **Revolver Playground:** Test prompt execution live and inspect trace metadata (which tier, provider, model, key, and latency were used).
|
||||
5. **Live Key Telemetry:** Real-time visibility into active keys, rate-limit cooldown timers, and request/error counters.
|
||||
5. **Live Key & Model Fallback Telemetry:** Real-time visibility into active keys, rate-limit cooldown timers, success rates, and live visual breadcrumb tracking of model routing cascades showing where and why models failed, how it fell back across keys and tiers, and what happened next.
|
||||
6. **Live Request Log Watcher:** In-memory (RAM-only) interactive request inspector. Toggle ON to capture live incoming and served requests with full input prompts, assistant completions (including real-time streaming chunks), metadata, and debug failover traces. Safely capped in a 250-item FIFO buffer, and completely flushes RAM upon toggling OFF. Includes real-time search, status/model filters, and JSON export.
|
||||
|
||||
All provider credentials and custom model definitions are persisted automatically in `data/revolver-config.json`.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue