Commit History
-
feat: theme dashboard charts and expose admin UI on HF Spaces
shinmentakezo078bdd0d7
-
feat: track local-path usage and enrich analytics dashboard
shinmentakezo07- Record server-tool and local-optimization requests in the usage ledger - Relay cache read/creation tokens into Responses usage details - Add cache/reasoning KPIs, request-log pagination, heatmap metric toggle, latency tooltips, and a sticky sidebar in the Admin UI - Rebuild admin static assets for the updated dashboard - Add usage-tracking and cache-token relay tests - Bump version to 4.28.0c860470 -
feat: add usage tracking with live throughput rates and analytics dashboard
shinmentakezo07 +1: ClaudeTrack per-request token usage (input/output/cache/reasoning) plus full prompts (capped at 64 KB) in a JSON ring buffer at ~/.fcc/usage.json, captured through a transparent UsageTrackingStream over the executor stream. Expose GET /admin/api/usage and a new Usage page in the admin UI with KPI cards, token mix, volume area chart, top endpoints, routing sankey, and hourly heatmap, auto-refreshing every 10 seconds. Throughput rates use a trailing 60-second live window on both backend and frontend so they track real-time traffic and decay to zero when idle; tokens/second counts output tokens only, tokens/minute counts input plus output. Bump 4.25.0 -> 4.27.0. Co-Authored-By: Claude <noreply@anthropic.com>e8f2acc -
feat: surface saved endpoint models and revamp the admin UI
shinmentakezo07Model ids saved per OpenAI-compatible endpoint on the admin page are now included in the admin model options and provider status, so numbered routes (openai_compatible_1/<model>) stay listed even when the endpoint's live /models route is unreachable. - settings: OpenAI-compatible instances persist an optional models list - status: endpoint cards report saved model ids alongside live ones - admin API: model options merge configured, discovered, and stored ids - tests: stored endpoint models appear in options/status; config round-trip Admin UI overhaul: - dark mode toggle (system-aware, persisted) with a light/dark token pass - responsive sidebar: off-canvas drawer with backdrop/Escape on mobile - sticky blurred header (view icon, title, description, version) and a sticky action bar with status icons and a dirty-count badge - config sections become cards with per-section icons and a model refresh action; fields gain source badges and description hints - provider/connected-account c…ee2cd20 -
fix: cache-bust admin UI and show the running version
shinmentakezo07The admin UI required a hard refresh after every deploy: the bundle was emitted with fixed filenames (assets/admin.js, assets/admin.css) even though the server already sent Cache-Control: no-store. Any cache that ignored or reused those URLs (browser memory/disk cache, back-forward cache, or an edge proxy in front of the deployment) kept serving the old bytes, since the URL never changed between deploys. - vite emits content-hashed filenames (admin-[hash].js/.css), so each build references new URLs and stale caches become inert by construction; index.html stays no-store and always fresh - admin config API now returns the installed package version (api -> core import, respecting the config package's dependency policy) and the header shows a vX.Y.Z badge, so a deployed update is visible without digging - cache-policy contract test now covers every built asset instead of the fixed names; version presence asserted in the manifest test - version 4.23.0 -> 4.23.11c54cf1 -
fix: make model combobox editable and searchable in Model Routing
shinmentakezo07The model field combobox looked searchable but was broken: the input was controlled by the committed value so keystrokes were reverted, typed text could never be committed (the empty state promised a custom slug that was impossible to enter), Enter only worked after arrow selection, and blur discarded the draft. Rewrite it as a true editable+searchable combobox: - the input shows the draft text while editing, so model ids can be typed or edited in place (WYSIWYG: the text in the box is the value) - filtering over the model list now reacts to visible typing - Enter commits the highlighted option, or the typed text as a custom model id when nothing is highlighted - blur commits the draft (exact option match selects the canonical option; anything else becomes a custom id); Escape reverts - stale filter/query and arrow index state reset on open/query change - version 4.22.1 -> 4.23.0c03ea68 -
feat: fetch models from OpenAI-compatible endpoints in admin UI
shinmentakezo07Add a Fetch models button to each numbered endpoint card on the OpenAI-Compatible page. It calls the endpoint's /models route through the existing provider test endpoint (GET {base}/models via the OpenAI client), lists the returned model ids on the card, adds them as provider/model options for the Model Config dropdowns, and offers "Use as default" to set the numbered route as the default model. - frontend: per-endpoint fetch/clear/use-model state, model list panel on each card, error surfacing through the action bar - tests: numbered instance list_model_infos() fetches model ids; contract status test accounts for numbered instances replacing the legacy openai_compatible entry when endpoints are configured - docs: README fetch-models notes - version 4.21.0 -> 4.22.0969cedb -
feat: numbered OpenAI-compatible endpoints admin page
shinmentakezo07Add a dedicated Admin UI page for OpenAI-compatible endpoints. Each endpoint becomes a numbered provider (openai_compatible_1/<model>, openai_compatible_2/<model>, ...) stored as a JSON array in OPENAI_COMPATIBLE_INSTANCES, with per-endpoint base URL, comma-separated key pool, and proxy. Endpoint 1 also answers the legacy openai_compatible/ route; the single-endpoint env vars remain the fallback. - settings: OpenAICompatibleInstance model, JSON parse/validate, numbered route validation across model fields - runtime: instance resolution in create_provider, provider config builder, model-list discovery includes numbered ids - admin: manifest field + status entries (numbered instances replace the single-endpoint entry when configured) - frontend: OpenAI-Compatble view with add/remove/import/test per endpoint - tests: settings parsing, route validation, factory resolution, discovery, manifest, admin status - version 4.20.0 -> 4.21.0f78c884 -
feat: admin dedicated pages, pool key management, keypool quotas (#1350)
shinmentakezo07- Admin UI becomes a Vite build under frontend/ with hash-routed dedicated pages (#/providers, #/model-config, #/messaging); the providers view renders only on its page. - Pool fields support reveal/edit/remove of individual keys via a new loopback-only GET /admin/api/pools/{field_key} endpoint; apply resolves tokens mixed with raw edits against stored keys. - admin assets now serve Cache-Control: no-store, fixing stale-bundle breakage after the frontend migration. - ApiKeyPool gains per_key_quota rotation plus transient HTTP 429/5xx/overload failover rotation with mark_failure. - CI runs the frontend build and verifies committed admin assets.9b71fd0