{"slug": "how-we-built-an-open-source-8-dimension-benchmark-15-minute-live-anti-downgrade", "title": "How We Built an Open-Source 8-Dimension Benchmark & 15-Minute Live Anti-Downgrade Monitor for LLM API Relays", "summary": "A developer released relay-eval, an MIT-licensed, zero-dependency Node.js tool that scores LLM API relays and gateways from 0 to 100 across eight dimensions of protocol fidelity and billing integrity, covering Anthropic /v1/messages, OpenAI /v1/chat/completions and /v1/responses, and Gemini /v1beta. The suite weights reasoning-effort scaling at 30% and prompt-cache hit stability at 25%, and also detects silently stripped reasoning parameters, HTTP 200 empty outputs, token inflation, and broken tool-call round-trips. The developer also deployed a continuous 15-minute public monitor on Wanyra API that publishes read-only JSON health and catalog endpoints and triggers a Telegram alert after two consecutive failures.", "body_md": "If you run production workloads or AI coding agents (Claude Code, Cursor, Cline, Cherry Studio) through multi-model LLM API gateways or relays, you have probably noticed that a simple `GET /v1/models` health check tells you almost nothing.\n\nA relay can return `HTTP 200` all day while silently breaking the things that actually matter in agent workflows:\n\n`low`, `medium`, or `high` effort produces identical token counts because the proxy strips or hardcodes `reasoning_effort` / `thinking` parameters.`max_tokens: 32` budget gets completely consumed by internal thinking tokens, returning an empty text delta even though the model is healthy.`tool_result` back on turn 2.\nTo stop guessing, we built and open-sourced **[relay-eval](https://github.com/a5768549/relay-eval)** (MIT, zero external runtime dependencies, Node.js >= 18) and deployed a continuous 15-minute public monitor on **[Wanyra API (`api.star1age.cn/status`)](https://api.star1age.cn/status)**.\n\nUnlike synthetic trivia benchmarks, `relay-eval` scores each route (0–100, Grade A >= 85) strictly on **protocol fidelity and economic integrity** across Anthropic `/v1/messages`, OpenAI `/v1/chat/completions`, OpenAI `/v1/responses`, and Google Gemini native `/v1beta`:\n\n| Dimension | Weight | What It Catches | \n|---|---|---|\n| **Reasoning Effort & Budget** | **30%** | Verifies monotonic scaling across `low / medium / high` (Claude`adaptive` +`output_config.effort` with`budget_tokens` fallback; GPT`reasoning_tokens` ; Gemini`thoughtsTokenCount` ) | \n| **Prompt Cache Hit & Stability** | **25%** | Fires repeated calls with a unique session tag + 4.3k-token prefix (1.5s spacing) to measure true cache hit rate and cache usage transparency | \n| **SSE Streaming & Empty Output** | **15%** | Measures real TTFT, detects silent HTTP 200 empty outputs, and checks terminal `usage` chunks | \n| **Billing Transparency** | **10%** | Uses deterministic non-thinking echo prompts to catch token inflation and cross-protocol usage mismatches | \n| **Tool Calling Passthrough** | **10%** | Tests round-1 tool invocation, valid JSON arguments, round-2 `tool_result` round-trip, and a no-tool control | \n| **Output Control / Inventory / Tiering** | **10%** | Stop sequences, hard truncation, inflated model lists, and backend aliasing across cheap/main/strong tiers | \n\nCrucially, **closed-source reasoning models are never penalized for hiding raw chain-of-thought text** — scoring inspects official token accounting fields (`reasoning_tokens`, `thoughtsTokenCount`, adaptive thinking behavior) instead.\n\n```\ngit clone https://github.com/a5768549/relay-eval.git\ncd relay-eval\n\n# Run 6 offline mock tests at zero API cost\nnpm test\n\n# Launch the local side-by-side Web UI (http://127.0.0.1:7331)\nnode src/server.mjs\n```\n\nOr run a dry-run from the CLI against your own config:\n\n```\nexport WANYRA_API_KEY=\"sk-...\"\nnode src/cli.mjs --config configs/wanyra.example.json --dry-run\n```\n\nIn the local Web UI, API keys live strictly in Node process memory — they are never written to disk, never stored in `localStorage`, and never included in exported Markdown/JSON reports.\n\nRunning a full 8-dimension suite every 5 minutes would burn unnecessary tokens. On **[Wanyra API](https://api.star1age.cn/en)**, we split continuous monitoring into two automated tiers published directly as static read-only JSON:\n\n`max_tokens: 256`, recording TTFT, System Prompt retention, and 24-hour hourly uptime bars. Two consecutive failures trigger an immediate Telegram alert.\nEverything is publicly inspectable with zero login required:\n\n`https://api.star1age.cn/api/portal/public-api/model-health`\n`https://api.star1age.cn/api/portal/public-api/catalog`\nIf you maintain an LLM gateway or rely on third-party relays in Claude Code / Cursor, give `relay-eval` a spin against an official baseline — PRs for additional protocol checks or baseline heuristics are very welcome!", "url": "https://wpnews.pro/news/how-we-built-an-open-source-8-dimension-benchmark-15-minute-live-anti-downgrade", "canonical_source": "https://dev.to/_b1ec585f6b965c31af/how-we-built-an-open-source-8-dimension-benchmark-15-minute-live-anti-downgrade-monitor-for-llm-1lj4", "published_at": "2026-11-27 11:36:10+00:00", "updated_at": "2026-11-27 11:45:14.423894+00:00", "lang": "en", "topics": ["ai-tools", "developer-tools", "large-language-models", "ai-agents", "mlops"], "entities": ["relay-eval", "Wanyra API", "Anthropic", "OpenAI", "Google Gemini", "Claude Code", "Cursor", "Cline"], "also_reported_by": [], "takeaway": "relay-eval scores relays 0-100 across eight weighted dimensions, with reasoning-effort monotonicity at 30% and prompt-cache hit rate at 25%, catching stripped reasoning_effort parameters, HTTP 200 empty outputs, and token inflation that a GET /v1/models check misses.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/how-we-built-an-open-source-8-dimension-benchmark-15-minute-live-anti-downgrade", "markdown": "https://wpnews.pro/news/how-we-built-an-open-source-8-dimension-benchmark-15-minute-live-anti-downgrade.md", "text": "https://wpnews.pro/news/how-we-built-an-open-source-8-dimension-benchmark-15-minute-live-anti-downgrade.txt", "jsonld": "https://wpnews.pro/news/how-we-built-an-open-source-8-dimension-benchmark-15-minute-live-anti-downgrade.jsonld"}}