{"article":{"title":"Channels","breadcrumb":["Upstream channels","Channels"],"body":"**What this solves**: Connect an upstream account you bought yourself to Tare, so Tare knows where to send requests, which credential to use, and which interface format to speak.\n\nA **channel** is an upstream you connect to Tare yourself: one base URL plus one credential.\n\n![Where channels sit in the chain](diagram:en-channels-chain)\n\nAfter you add a channel, Tare knows \"if some model should go to your upstream, where to send it, which upstream key to use, and which interface format to speak\".\n\nConsole entry: **Channels** → **Add channel**.\n\n> [!NOTE]\n> **Add channel only means \"connect the upstream account\", not that traffic will use it immediately.**\n> After adding it you still need to test the channel, enter cost prices, and point a model name at this channel in [Routing](routing).\n\n### Fastest path: an OpenAI-compatible upstream\n\nIf your upstream is OpenAI-compatible, for example OpenRouter, LiteLLM, or a self-hosted `/v1/chat/completions` gateway, in most cases these values are enough to get it running:\n\n1. Open the console → **Tare** → **Channels**.\n2. Click **Add channel**.\n3. **Name**: enter a name you can recognize, for example `openrouter-prod`.\n4. **Base URL**: enter it up to `/v1`, for example `https://openrouter.ai/api/v1`.\n5. **API key**: enter the key your upstream gave you, for example `sk-or-...`.\n6. **Endpoints → Non-streaming → Dialect**: choose **OpenAI (messages)**.\n7. **Non-streaming URL**: leave it empty for now.\n8. **Streaming**: leave it empty for now.\n9. **Embeddings**: leave it unchecked for now, unless you are sure this upstream has an embeddings endpoint.\n10. **Local node**: leave it unchecked for now.\n11. Click **Add**.\n12. Expand this channel and click **Test** or **Chat** to verify it.\n13. Click **Browse upstream models**, or enter model cost prices manually.\n14. Go to the **Routing** page and route your model name to this channel.\n\nThe principle of this path is: **get chat completions working first, then fill in the details for streaming, embeddings, cost prices, and routing.**\n\n### The Add channel form, field by field\n\n#### Name\n\nGive this channel an easily recognizable display name.\n\nInclude the vendor, the environment, or the purpose:\n\n```text\nopenrouter-prod\nanthropic-team-a\nazure-gpt4o-sg\nlmstudio-office\n```\n\nThis name shows up in Channels, Routing, Model Health, call details, and troubleshooting information. Don't use a name like `test`, `api`, or `default` that nobody will recognize later.\n\n#### Base URL\n\nNormally, enter the Base URL up to `/v1`.\n\n| Upstream | Base URL example |\n|---|---|\n| OpenRouter | `https://openrouter.ai/api/v1` |\n| OpenAI-compatible self-hosted gateway | `https://llm.example.com/v1` |\n| LM Studio LAN service | `http://192.168.1.20:1234/v1` |\n\nTare uses the **Dialect** you choose to decide which path to append, how to list models, and whether a credential is needed:\n\n| Dialect | chat address | model list | credential |\n|---|---|---|---|\n| OpenAI (messages) | `{base}/chat/completions` | `{base}/models` | Required |\n| Responses (input) | `{base}/responses` | `{base}/models` | Required |\n| Anthropic | `{base}/messages` | `{base}/models` | Required |\n| LM Studio | `{base}/chat/completions` | `{base}/models` | **Leave empty** |\n| Custom | No appending; enter the full URL | Enter the full URL | Required |\n\n> [!WARNING]\n> **Do not put `/chat/completions` into the Base URL.**\n> The Base URL is the `https://host/v1` level. Only when you explicitly want to override the endpoint should you fill in the Non-streaming URL under Endpoints.\n\n#### Upstream completions URL\n\nWhen the Non-streaming Dialect is **Custom**, the form no longer has a Base URL field. Instead it asks you for the full **Upstream completions URL**.\n\nCustom means: **Tare no longer appends the path for you. Whatever you enter is what Tare sends.**\n\nGood for:\n\n- Interfaces like Azure OpenAI where the path contains a deployment and the query must carry `api-version`.\n- Interfaces like Gemini where the model name is in the path.\n- Any gateway that does not follow the `{base}/chat/completions`, `{base}/responses`, `{base}/messages` convention.\n\nAzure example:\n\n```text\nhttps://example.openai.azure.com/openai/deployments/gpt-4o/chat/completions?api-version=2024-02-01\n```\n\n**Why there is a Custom option**: upstreams like Azure that require an `api-version` query, or Gemini that puts the model name in the path, do not follow the path conventions above. If you force them into the OpenAI row, you get a 404 and no clue why. Custom is the escape hatch for these upstreams.\n\nIf you only have an OpenAI-compatible gateway, don't choose Custom. Filling in the Base URL and choosing OpenAI (messages) is more reliable.\n\n#### API key\n\nEnter the key your upstream vendor gave you. Tare stores it encrypted and only sends it to the upstream you entered when calling this channel.\n\nOnly **LM Studio** may be left empty, because it usually does not check credentials. Other upstreams usually return a 401 when you call them without a key.\n\nWhen editing an existing channel:\n\n- Not changing the key: keep the masked value in the input field as it is.\n- Rotating the key: enter the new full key.\n- The old key is never shown in plaintext; if you lose it, you can only regenerate it at the upstream.\n\n### The Endpoints section\n\nThe Endpoints section is where it's easiest to make a mistake. Remember one rule:\n\n> [!WARNING]\n> **The address and the Dialect are a pair.**\n> `/chat/completions` goes with OpenAI (messages), and `/responses` goes with Responses (input). Changing only the address and not the Dialect, or only the Dialect and not the address, causes the upstream to receive a request in the wrong format.\n\n#### Non-streaming\n\nNon-streaming is the address for ordinary non-streaming calls.\n\nMost of the time:\n\n- **Leave the URL empty**\n- **Dialect is required**\n\nEmpty means: Tare derives the address from the Base URL plus the Dialect.\n\nWhen do you need to fill in the Non-streaming URL?\n\n- Your non-streaming address differs from the standard derivation.\n- Your gateway only implements one specific full path.\n- You need to include a fixed query.\n- You chose Custom.\n\nCommon pairings:\n\n| Non-streaming URL | Dialect |\n|---|---|\n| `https://host/v1/chat/completions` | OpenAI (messages) |\n| `https://host/v1/responses` | Responses (input) |\n| `https://host/v1/messages` | Anthropic |\n| Azure full completions URL | Custom |\n\n> [!WARNING]\n> **Do not pair `/responses` with OpenAI (messages).**\n> Responses receives `input`, not `messages`.\n\n#### Streaming\n\nStreaming is the address for streaming calls.\n\nMost of the time:\n\n- Leave the Streaming URL empty.\n- Leave the Streaming Dialect empty.\n\nEmpty means: streaming calls use the same addresses and protocols as Non-streaming.\n\nWhen do you need to fill in Streaming separately?\n\n- Your upstream split SSE/stream onto a different path.\n- Your reverse proxy opened a separate port or path for stream.\n- Ordinary calls work, but as soon as you turn on stream you run into a 404, a timeout, or proxy buffering.\n- The same gateway uses `/responses` for non-streaming but only supports `/chat/completions` for streaming, or the other way around.\n\nIf you fill in a Streaming URL, you must choose a Streaming Dialect. They are a pair too.\n\n#### Embeddings\n\nEmbeddings is disabled by default.\n\nOnly when you are sure this upstream has an embeddings endpoint should you check **Supported** and fill in the full Embeddings URL, for example:\n\n```text\nhttps://host/v1/embeddings\n```\n\n> [!WARNING]\n> **OpenAI-compatible chat does not mean this upstream necessarily supports embeddings.**\n> Tare will not derive `/v1/embeddings` from the Dialect. Only filling in the Embeddings URL means this channel serves embeddings.\n\nIf you are only connecting chat completions for now, leave Embeddings off.\n\n### How to choose a Dialect\n\nThe Dialect decides how Tare translates an OpenAI-format request for the upstream.\n\n| The request format your upstream expects | Choose |\n|---|---|\n| `messages`, `tools`, `stream`, path usually `/chat/completions` | OpenAI (messages) |\n| `input`, `instructions`, `output`, path usually `/responses` | Responses (input) |\n| Anthropic Messages API, path usually `/messages` | Anthropic |\n| A local LM Studio OpenAI-compatible server | LM Studio |\n| Path, query, deployment, or model location all non-standard | Custom |\n\n![How to choose a Dialect: by the request format the upstream expects](diagram:en-channels-dialect-choice)\n\n#### OpenAI (messages)\n\nFor the Chat Completions format, common with OpenRouter, LiteLLM, vLLM, LM Studio, and many self-hosted OpenAI-compatible gateways.\n\n#### Responses (input)\n\nFor the Responses format.\n\n> [!WARNING]\n> **OpenAI Responses and OpenAI-compatible are genuinely different formats, not the same format at a different path.**\n> The account, base URL, and key are the same as a regular OpenAI deployment, but `messages` becomes `input`, `system` becomes\n> `instructions`, tools are flattened, and the response goes from `choices` to an `output` array.\n>\n> Don't choose OpenAI (messages) just because it is also an OpenAI account, OpenAI base URL, and OpenAI key.\n>\n> A self-hosted gateway may well run some models with Chat Completions and others with Responses. This is also why\n> the Dialect is chosen **per channel**, not guessed from the domain.\n\n#### Anthropic\n\nTare translates the inbound OpenAI format into the Anthropic Messages API, then translates the response back.\n\nWhen you choose **Anthropic** the request body itself is rewritten: outbound it translates OpenAI format into Anthropic format, and it reverses the translation on the way back.\n\nThe specific changes:\n\n- system messages are pulled out of `messages`.\n- Tool calls become content blocks.\n- Images change format.\n- `max_tokens` is optional in OpenAI but **required** in Anthropic; Tare fills it in when you don't pass it.\n\nThe other fields are forwarded to the upstream as-is, **translated only where they cannot be forwarded as-is**.\n\n#### LM Studio\n\nLM Studio is for a local model service running on your own machine.\n\n> [!WARNING]\n> **Do not enter `localhost`.**\n> LM Studio runs on your own machine, but the connection is made by the **Tare server**, and the Tare server cannot reach `localhost` on your computer.\n\nTurn on the LAN service in LM Studio and enter a LAN or public address that is reachable, for example:\n\n```text\nhttp://192.168.1.20:1234/v1\n```\n\nIf you want Tare in the cloud to reach it, also make sure it is reachable from the Tare server. In many cases it is better to use a local model together with a [Local Node](local-nodes).\n\n#### Custom\n\nCustom does not append a path and does not guess the protocol. It only calls the full URL you enter. Good for non-standard interfaces. The downside is that you must know the full endpoint yourself.\n\n### Fetching the upstream model list\n\nClick **Browse upstream models** and Tare queries the upstream for available models; when the upstream publishes prices, they come back too.\n\nTwo things to be clear about:\n\n- Tare **pages through the upstream to the end**. Anthropic defaults to 20 per page and Gemini to 50, so taking only the first page gives you a small slice of the catalog, and the UI doesn't show that.\n- Extremely long catalogs (aggregator gateways with thousands of models) are truncated, and the dialog says so when it happens. Search only covers what is listed, so if you can't find a model, just type the exact model name.\n\n> [!NOTE]\n> This is a **suggested list, not an allowlist**. Private deployments, canary models, and aliases do not appear in the vendor's list, but they are still usable; manually entering an unlisted model name is always allowed.\n\n### After adding a channel: test it before going live\n\nA successful add is only the first step. Three checks, in the order you would actually use them, **none of which counts as one of your real calls**:\n\n1. **Probe the Dialect**: send an empty body and see which required field the upstream says is missing, then work back to which format it speaks. Costs not one token.\n2. **Test connectivity**: whether the address is reachable, whether the key is recognized, whether the Dialect is right. It gives you **a series of steps**, not a single pass/fail result, because \"test failed\" is useless to you; what you need to know is which step it got stuck on.\n3. **Send one sentence**: actually say something to the model. The first two can pass and the channel can still fail: a typo in the model name, the upstream took the model offline, the balance ran out, a content policy block. Only actually sending one call reveals these.\n\n> [!NOTE]\n> Step 3 does consume real upstream tokens (the reply length is deliberately kept very short), but it is **not billed and does not enter Call Traces**: this is a diagnostic you triggered by hand, not real business traffic.\n\n![The three checks before a channel goes live](diagram:en-channels-verify-flow)\n\nThe full sequence to follow:\n\n1. Expand the channel.\n2. Click **Test** to first check whether the address, credential, and Dialect basically match.\n3. Click **Chat** to actually send a short message and verify the model name, balance, content policy, and real request body.\n4. Click **Browse upstream models** to fetch the upstream model list; if you can't fetch it, you can enter the model name manually.\n5. Enter the prices of the upstream models you will use in [cost prices](cost-prices).\n6. Point the external model name at this channel in [Routing](routing).\n7. If BYOK must call the upstream directly from your own network, register a node per [Local Node](local-nodes), mark the channel `LOCAL_NODE`, and point the business at the node address.\n\n### Evaluating a channel\n\n**Evaluate** on a channel runs a fixed set of real calls against each model routed to it and reports, check by check, whether what the upstream bills and serves matches what it claims. The calls are billed to the channel's own credential, so the dialog shows the number of calls, the token budget and, when cost prices are set, the estimated cost before anything is sent. A typical run is about a dozen calls and a few thousand tokens per model.\n\n| Check | What is sent | A mismatch looks like |\n|---|---|---|\n| Input token counts | Eight prompts of known length | A fixed number of extra tokens on every call (a hidden system prompt), or counts that do not grow with the prompt |\n| Output token counts | A request to copy a known passage | More output tokens billed than the passage contains |\n| Model identity | Graded questions, plus the model name the upstream reports in its raw response | A different model family or a smaller variant |\n| Streaming | A short streamed answer | The whole answer in one frame, or no usage in the stream |\n| Tool calls, JSON mode | One request each | Tools ignored, malformed arguments, `response_format` ignored |\n| Image input | A solid red test image (only when the route declares image input) | The colour is not recognised |\n| `max_tokens` limit | `max_tokens: 24` on a long-answer prompt | More than 24 output tokens billed |\n| Long context (optional) | A fact placed in the middle of a 32K–1M-token prompt | Fewer input tokens processed than sent, or the fact not found |\n| Prompt cache (optional) | The same long prompt twice, with a random first line | Cache hits on the first request, or none on the second |\n| Injected content | Nothing extra; all replies above are scanned | Links or advertising nobody asked for |\n\nEach check ends as **Trustworthy**, **Doubtful**, **Mismatch** or **Skipped**, with the measured numbers under *Details*. Where Tare holds a reference measurement for the same model taken on an official channel, token counts and the graded questions are compared against it; otherwise those checks only test the counts for internal consistency.\n\nThe report also summarises the channel's live traffic over the chosen window (1–30 days, free): success rate, latency, time to first byte, parked time, cost per successful call, cost per million output tokens, and, when hidden input tokens were found, an estimate of what they cost over that window.\n\nEvaluation calls are not billed by Tare, do not appear in Call Traces and do not affect routing or channel health. They run where the channel's live traffic runs, through the node's own request handling (dialect translation, parameter rules, response translation):\n\n| Channel | Evaluated on |\n|---|---|\n| Goes out through a [Local Node](local-nodes) | that Local Node |\n| Direct (your own channel or a platform channel) | Tare's official node |\n| Set to always go out through Tare | Tare |\n\nOne evaluation stays on one path, and the report names it. If that node is offline, or runs a version without evaluation support, the evaluation does not start; upgrade the node and let it reconnect. If the node drops out partway, the evaluation stops and keeps the checks finished so far. **Download PDF** on a finished evaluation saves the whole report (checks, live traffic and the measurements behind each verdict) as a PDF to keep or share. Behind the dialog: `POST /v1/providers/{id}/evals/estimate`, `POST /v1/providers/{id}/evals`, `GET /v1/providers/{id}/evals[/{runId}]` and `GET /v1/providers/{id}/evals/{runId}/pdf`, console-session only.\n\n### Pausing a channel\n\nTo take a channel out of traffic without deleting it, open the channel's **⋯** menu and choose **Pause**. The channel shows **Paused**, and within a minute no call is sent to it: requests go to the model's other routes, including the platform route behind yours when **Use platform models** is on (billed at the platform price). If no route is left, calls to that model fail until you resume; they do not fall to the catch-all route. Its routes, cost prices and credential stay as they are, and **Test**, **Chat** and **Evaluate** still work on it, so you can check the upstream before choosing **Resume**. The same switch is `paused` on `PUT /v1/providers/{id}`.\n\n### Grouping channels by vendor\n\nThe Channels page lets you group channels under vendor groups you name yourself (it first guesses a vendor from the channel name, and you can correct a wrong guess). This is useful when you have many channels from several resellers.\n\n> [!NOTE]\n> This grouping **exists only in your own browser's local storage**: it is never sent to Tare, it is not shared between team members or across devices, and it is gone if the browser data is cleared. Routing, billing, and any behavior of the channel itself do not depend on this grouping.\n\n### Checking the health of your own channels\n\nConsole → **Model Health** (`GET /v1/health/channels`) directly answers \"why does my own channel no longer get traffic\", without you having to work backward from a string of failures in call details.\n\nThis page gives you:\n\n- The current status (healthy / degraded / disabled).\n- Success rate and average latency.\n- The reason for the last failure.\n- A timeline with a timestamp for every time it was taken out of rotation and every time it recovered.\n\n![Channel health page: three states and one timeline](diagram:en-channels-health-states)\n\n> [!NOTE]\n> For the circuit breaker and trial request logic in the diagram, see the \"circuit breaker\" subsection of [Routing](routing); for the frequency and thresholds of active probing, see [Limits and quota](limits).\n\nThe live status on this page only serves the current routing decision and is not meant to be looked back at: **it only reflects right now and keeps no history**. To answer \"did it actually go down this morning\", use `GET /v1/health/timeline` instead, which queries the archived call history (`granularity`: minute/half-hour/hour/day, plus a `model` filter and how far back to look).\n\n> [!NOTE]\n> Both are **console pages, not endpoints you can call with an API key**, and like Channels and Routing they need a login session. What you see covers **only your own** channels. The version everyone sees in the model catalog is a view not divided by account, aggregated by model and not broken down by specific vendor. Which vendor sits behind a platform model is not public in the first place.\n\n> [!NOTE]\n> embeddings and video generation also report data into this same circuit breaker and success-rate statistics, the same set used by chat and image generation, so a channel that serves only these two kinds of calls is not invisible here. Video generation has two signal segments: whether the upstream accepted the task at submission time, and a later, separately recorded segment for whether it actually finished. A channel can look fine in the first segment and still be failing in the second.\n\n### How to fill in common upstreams\n\n#### OpenRouter\n\n| Field | Value |\n|---|---|\n| Name | `openrouter-prod` |\n| Base URL | `https://openrouter.ai/api/v1` |\n| API key | OpenRouter key |\n| Non-streaming Dialect | OpenAI (messages) |\n| Non-streaming URL | Leave empty |\n| Streaming | Leave empty |\n| Embeddings | Leave off if unsure |\n\n#### OpenAI-compatible self-hosted gateway\n\n| Field | Value |\n|---|---|\n| Name | `company-llm-gateway` |\n| Base URL | `https://llm.example.com/v1` |\n| API key | Your gateway key |\n| Non-streaming Dialect | OpenAI (messages) |\n| Non-streaming URL | Usually empty |\n| Streaming | Usually empty |\n\nIf your gateway only has `/responses`, choose Responses (input).\n\n#### Anthropic\n\n| Field | Value |\n|---|---|\n| Name | `anthropic-prod` |\n| Base URL | The Anthropic base URL the platform provides |\n| API key | Anthropic key |\n| Non-streaming Dialect | Anthropic |\n| Streaming | Usually empty, unless you have a separate streaming path |\n\n#### LM Studio\n\n| Field | Value |\n|---|---|\n| Name | `lmstudio-office` |\n| Base URL | `http://192.168.1.20:1234/v1` |\n| API key | Leave empty |\n| Non-streaming Dialect | LM Studio |\n| Streaming | Usually empty |\n\n#### Azure OpenAI\n\nAzure usually chooses **Custom**, because the deployment and `api-version` are in the path/query.\n\n| Field | Value |\n|---|---|\n| Name | `azure-gpt4o-prod` |\n| Non-streaming Dialect | Custom |\n| Upstream completions URL | The Azure full completions URL, with the deployment and `api-version` |\n| API key | Azure key |\n\n### Troubleshooting common errors\n\n| Symptom | Common cause | Where to look |\n|---|---|---|\n| Add shows `Pick the dialect for the non-streaming endpoint` | No Non-streaming Dialect chosen | Endpoints → Non-streaming → Dialect |\n| Add shows `Upstream URL is required` | Neither Base URL nor full URL is filled in | Base URL or Custom URL |\n| Add shows `Custom dialects append nothing` | Custom chosen but no full completions URL entered | Upstream completions URL |\n| Add shows `Give the embeddings endpoint` | Embeddings Supported is on but no URL entered | Embeddings URL |\n| Call returns 401 | Wrong upstream API key, missing, expired, or insufficient permissions | API key |\n| Call returns 404 | Base URL misspelled, endpoint doesn't exist, Custom URL incomplete, model doesn't exist | Base URL / Non-streaming URL / Routing |\n| Upstream reports `messages is required` | `/chat/completions` did not receive OpenAI messages format | Whether the Dialect is wrongly set to Responses |\n| Upstream reports `input is required` | `/responses` did not receive Responses input format | Whether the Dialect is wrongly set to OpenAI |\n| Browse upstream models is empty | Upstream doesn't support listing models, key only allows chat, URL can't derive the models address | Not necessarily a problem for calls; enter the model manually |\n| Ordinary calls work, stream fails | stream buffered by a proxy, different path, timeout, or different SSE configuration | Streaming URL / Streaming Dialect |\n| LM Studio with localhost doesn't work | The Tare server reaches its own localhost, not your computer | Change to a LAN/public address or use a Local Node |\n\n### How the endpoints relate to the console\n\nThe Channels page is mainly backed by these endpoints, all using a login session rather than an API key:\n\n| Action | Endpoint |\n|---|---|\n| List channels | `GET /v1/providers` |\n| Add a channel | `POST /v1/providers` |\n| Modify a channel | `PUT /v1/providers/{id}` |\n| Delete a channel | `DELETE /v1/providers/{id}` |\n| Read/write the Dialect choice | `GET` / `PUT /v1/providers/{id}/dialects` |\n| Fetch upstream models | `GET /v1/providers/{id}/upstream-models` |\n| Test a channel | `POST /v1/providers/{id}/test` |\n| Send one sentence with a channel | `POST /v1/providers/{id}/chat` |\n| Check channel health | `GET /v1/health/channels` |\n| Check the health timeline | `GET /v1/health/timeline` |\n\nDeleting a channel stops every route that points at it. Its recorded usage and cost history is kept.\n\n### Minimal acceptance checklist\n\n- [ ] This channel shows up on the Channels page.\n- [ ] Test channel can confirm that the address, key, and Dialect are all usable.\n- [ ] Chat one sentence gets a model reply.\n- [ ] Browse upstream models lists models; if it can't, you have confirmed the manual model name works.\n- [ ] The upstream models you need are already in the cost price configuration, or you have confirmed the upstream reports real cost in its response.\n- [ ] The Routing page has pointed the external model name at this channel.\n- [ ] One real request with a business key returns `X-Generation-Id` / `gen-...`.\n\n### Next steps\n\nThese three articles are one chain; read them in order: **connect a channel → enter cost prices → configure routing**. You have just finished the first step.\n\n- Next: enter upstream prices for this channel, read [cost prices](cost-prices).\n- After that: point the external model name at this channel, read [Routing](routing).\n- To have BYOK call the upstream directly from your own network: read [Local Node](local-nodes).\n- To understand each console page first: read [Console guide](console-guide).\n"},"diagrams":{"en-channels-chain":"<svg viewBox=\"0 0 746 334\" width=\"746\" role=\"img\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Where a channel sits in the chain</title>\n  <desc>A channel is one upstream you connect: a base URL plus a credential. Only LM Studio may omit the credential. Tare uses that config to decide where to call, which key to use, and which format to speak. The five upstreams are OpenRouter, Anthropic, Azure OpenAI, a self-hosted OpenAI-compatible gateway, and LM Studio.</desc>\n  <style>\n    text { font-family: 'PingFang SC', 'Microsoft YaHei', 'Noto Sans CJK SC', system-ui, sans-serif; }\n  </style>\n  <defs>\n    <marker id=\"arrow-blue\" markerWidth=\"8\" markerHeight=\"8\" refX=\"2\" refY=\"4\" orient=\"auto\" markerUnits=\"userSpaceOnUse\">\n      <path d=\"M0,0 L8,4 L0,8 L2,4 z\" fill=\"#3b82f6\"/>\n    </marker>\n    <marker id=\"arrow-orange\" markerWidth=\"8\" markerHeight=\"8\" refX=\"2\" refY=\"4\" orient=\"auto\" markerUnits=\"userSpaceOnUse\">\n      <path d=\"M0,0 L8,4 L0,8 L2,4 z\" fill=\"#f59e0b\"/>\n    </marker>\n  </defs>\n\n  <!-- 浅色画布：图被贴到深色页面上时，仍然读作一张白卡片 -->\n  <rect x=\"0\" y=\"0\" width=\"746\" height=\"334\" fill=\"#ffffff\"/>\n\n  <!-- 版式算术在任何坐标落笔之前就定死了。\n       三层同宽：Tare 与「你的渠道」都横跨整行 22..724（宽 702），\n       五类上游并排在最下一行：宽 118、间距 28，于是\n       22..140 / 168..286 / 314..432 / 460..578 / 606..724。\n       框高按公式给：两行 12 x 3 + 18 = 54，一行 12 x 3 = 36。\n       行顶边 60 / 142 / 224；上一行底边到下一行顶边一律 28px。\n       最宽的一行字是第五格里的「Azure OpenAI」= 12 x 7 = 84px，\n       118 的框宽给它留了左右各 17px 内边距。\n       内容左右边界 22..724，中心 373；viewBox 宽 = 702 + 两侧各 22 = 746；\n       标题与两条脚注都落在 373，和框体包围盒的中心是同一个数。\n       高度 = 脚注末行基线 309 + 下伸 2.5 + 22px 边距 = 333.5，取整 334。 -->\n\n  <!-- 标题落在内容中心 373。y = 22 + 16 x 0.75 -->\n  <text x=\"373\" y=\"34\" font-size=\"16\" fill=\"#1e293b\" text-anchor=\"middle\">Where a channel sits in the chain</text>\n\n  <!-- 第 1 层：连线。起点 = 源框底边 + 5，终点 = 目标框顶边 - 11，留 12px 可见线。\n       Tare → 渠道 一条，走中轴 373；渠道 → 五类上游 五条，全竖直、\n       落在五个格心的 x 上。线色跟着它离开的那个框的描边色。 -->\n  <path d=\"M373,119 L 373,131\" fill=\"none\" stroke=\"#3b82f6\" stroke-width=\"1.5\" marker-end=\"url(#arrow-blue)\"/>\n  <path d=\"M81,201 L 81,213\" fill=\"none\" stroke=\"#f59e0b\" stroke-width=\"1.5\" marker-end=\"url(#arrow-orange)\"/>\n  <path d=\"M227,201 L 227,213\" fill=\"none\" stroke=\"#f59e0b\" stroke-width=\"1.5\" marker-end=\"url(#arrow-orange)\"/>\n  <path d=\"M373,201 L 373,213\" fill=\"none\" stroke=\"#f59e0b\" stroke-width=\"1.5\" marker-end=\"url(#arrow-orange)\"/>\n  <path d=\"M519,201 L 519,213\" fill=\"none\" stroke=\"#f59e0b\" stroke-width=\"1.5\" marker-end=\"url(#arrow-orange)\"/>\n  <path d=\"M665,201 L 665,213\" fill=\"none\" stroke=\"#f59e0b\" stroke-width=\"1.5\" marker-end=\"url(#arrow-orange)\"/>\n\n  <!-- 第 2 层：方框和文字，盖住线头。\n       两行框的基线 = 框心 + 12 x 0.35 再上下各让 9px：\n       60 起的框落在 82 / 100，142 起的框落在 146 / 164。\n       一行框的基线 = 框心 + 12 x 0.35：224 起、框心 242，落在 246。\n       蓝是「输入」那一组：Tare 是请求的来源侧。 -->\n  <rect x=\"22\" y=\"60\" width=\"702\" height=\"54\" rx=\"6\" fill=\"#dbeafe\" stroke=\"#3b82f6\"/>\n  <text x=\"373\" y=\"82\" font-size=\"12\" fill=\"#1e40af\" text-anchor=\"middle\">Tare</text>\n  <text x=\"373\" y=\"100\" font-size=\"10\" fill=\"#1e40af\" text-anchor=\"middle\">Where to call, which key, and which format, from this channel</text>\n\n  <!-- 橙是「处理中」那一组：渠道这一层真正在做的是换算——\n       把你填的 base URL、凭据和 Dialect 换成一次具体的外发调用。 -->\n  <rect x=\"22\" y=\"142\" width=\"702\" height=\"54\" rx=\"6\" fill=\"#fef3c7\" stroke=\"#f59e0b\"/>\n  <text x=\"373\" y=\"164\" font-size=\"12\" fill=\"#b45309\" text-anchor=\"middle\">Your channel</text>\n  <text x=\"373\" y=\"182\" font-size=\"10\" fill=\"#b45309\" text-anchor=\"middle\">One base URL plus a credential. Only LM Studio may omit it.</text>\n\n  <!-- 绿是「输出」那一组：五类上游是请求最终落地的地方。\n       五类一并列出，是因为原文第 12 行给的就是这五类，\n       不是「举例其中几个」。 -->\n  <rect x=\"22\" y=\"224\" width=\"118\" height=\"36\" rx=\"6\" fill=\"#d1fae5\" stroke=\"#22c55e\"/>\n  <text x=\"81\" y=\"246\" font-size=\"12\" fill=\"#166534\" text-anchor=\"middle\">OpenRouter</text>\n\n  <rect x=\"168\" y=\"224\" width=\"118\" height=\"36\" rx=\"6\" fill=\"#d1fae5\" stroke=\"#22c55e\"/>\n  <text x=\"227\" y=\"246\" font-size=\"12\" fill=\"#166534\" text-anchor=\"middle\">Anthropic</text>\n\n  <rect x=\"314\" y=\"224\" width=\"118\" height=\"36\" rx=\"6\" fill=\"#d1fae5\" stroke=\"#22c55e\"/>\n  <text x=\"373\" y=\"246\" font-size=\"12\" fill=\"#166534\" text-anchor=\"middle\">Azure OpenAI</text>\n\n  <rect x=\"460\" y=\"224\" width=\"118\" height=\"36\" rx=\"6\" fill=\"#d1fae5\" stroke=\"#22c55e\"/>\n  <text x=\"519\" y=\"246\" font-size=\"12\" fill=\"#166534\" text-anchor=\"middle\">Self-hosted</text>\n\n  <rect x=\"606\" y=\"224\" width=\"118\" height=\"36\" rx=\"6\" fill=\"#d1fae5\" stroke=\"#22c55e\"/>\n  <text x=\"665\" y=\"246\" font-size=\"12\" fill=\"#166534\" text-anchor=\"middle\">LM Studio</text>\n\n  <!-- 脚注两行，同为 10px、行距 15px，与标题同一条中轴 373。\n       第一条是原文 NOTE 的落点：Add channel 不等于流量立刻走它，\n       后面那三件事（测试、进价、路由）是真正让它接上流量的一步。\n       第二条把「自建网关」这个框内简称补回原文的完整说法。 -->\n  <text x=\"373\" y=\"294\" font-size=\"10\" fill=\"#64748b\" text-anchor=\"middle\">Adding a channel only connects the account. Still test it, enter prices when cost is omitted, and point a model at it.</text>\n  <text x=\"373\" y=\"309\" font-size=\"10\" fill=\"#64748b\" text-anchor=\"middle\">Five upstreams: OpenRouter, Anthropic, Azure OpenAI, a self-hosted OpenAI-compatible gateway, and LM Studio.</text>\n</svg>\n","en-channels-dialect-choice":"<svg viewBox=\"0 0 746 294\" width=\"746\" role=\"img\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Choose Dialect by the upstream request format</title>\n  <desc>Dialect is how Tare translates an OpenAI-format request into what the upstream expects: OpenAI messages, Responses input, Anthropic Messages, LM Studio, or Custom with a full URL.</desc>\n  <style>\n    text { font-family: 'PingFang SC', 'Microsoft YaHei', 'Noto Sans CJK SC', system-ui, sans-serif; }\n  </style>\n  <defs>\n    <marker id=\"arrow-blue\" markerWidth=\"8\" markerHeight=\"8\" refX=\"2\" refY=\"4\" orient=\"auto\" markerUnits=\"userSpaceOnUse\">\n      <path d=\"M0,0 L8,4 L0,8 L2,4 z\" fill=\"#3b82f6\"/>\n    </marker>\n  </defs>\n\n  <!-- 浅色画布：图被贴到深色页面上时，仍然读作一张白卡片 -->\n  <rect x=\"0\" y=\"0\" width=\"746\" height=\"294\" fill=\"#ffffff\"/>\n\n  <!-- 版式算术在任何坐标落笔之前就定死了。\n       根框横跨整行 22..724（宽 702），五个选项并排在这一行之下：\n       宽 118、间距 28，于是 22..140 / 168..286 / 314..432 / 460..578 / 606..724。\n       根框为什么横跨：块间距检查按「同一行」量水平净距，必须 25–30px；\n       根框若做成居中窄框，五条扇出腿要在 28px 的竖直通道里横移 ±168px。\n       框高按公式给：根框两行 54，选项三行 72。行顶边 60 / 142，留 28px。\n       最宽的一行字是「/chat/completions」= 17 x 5.5 = 93.5px，\n       118 的框宽给它留了左右各 12px 内边距。\n       内容左右边界 22..724，中心 373；viewBox 宽 = 702 + 两侧各 22 = 746；\n       标题与两条脚注都落在 373，和框体包围盒的中心是同一个数。\n       高度 = 脚注末行基线 269 + 下伸 2.5 + 22px 边距 = 293.5，取整 294。 -->\n\n  <!-- 标题落在内容中心 373。y = 22 + 16 x 0.75 -->\n  <text x=\"373\" y=\"34\" font-size=\"16\" fill=\"#1e293b\" text-anchor=\"middle\">Choose Dialect by the upstream request format</text>\n\n  <!-- 第 1 层：五条连线。竖向运行：起点 = 根框底边 + 5，终点 = 选项框顶边 - 11，\n       留 12px 可见线。五条全竖直、都带着根框的描边色（蓝）：\n       它们是同一次判定的五个出口，不是五段先后发生的过程。 -->\n  <path d=\"M81,119 L 81,131\" fill=\"none\" stroke=\"#3b82f6\" stroke-width=\"1.5\" marker-end=\"url(#arrow-blue)\"/>\n  <path d=\"M227,119 L 227,131\" fill=\"none\" stroke=\"#3b82f6\" stroke-width=\"1.5\" marker-end=\"url(#arrow-blue)\"/>\n  <path d=\"M373,119 L 373,131\" fill=\"none\" stroke=\"#3b82f6\" stroke-width=\"1.5\" marker-end=\"url(#arrow-blue)\"/>\n  <path d=\"M519,119 L 519,131\" fill=\"none\" stroke=\"#3b82f6\" stroke-width=\"1.5\" marker-end=\"url(#arrow-blue)\"/>\n  <path d=\"M665,119 L 665,131\" fill=\"none\" stroke=\"#3b82f6\" stroke-width=\"1.5\" marker-end=\"url(#arrow-blue)\"/>\n\n  <!-- 第 2 层：方框和文字，盖住线头。\n       根框基线落在 82 / 100（框心 87 + 12 x 0.35，再上下各让 9px）；\n       选项框基线落在 165 / 183 / 198（框心 178 + 12 x 0.35 = 182.2，\n       12px 标题上让 17.2、两条 10px 行按 18 / 15 的间距往下摊）。\n       蓝是「输入」那一组：请求体是什么格式，是这一次判定的起点。 -->\n  <rect x=\"22\" y=\"60\" width=\"702\" height=\"54\" rx=\"6\" fill=\"#dbeafe\" stroke=\"#3b82f6\"/>\n  <text x=\"373\" y=\"82\" font-size=\"12\" fill=\"#1e40af\" text-anchor=\"middle\">The request format your upstream expects</text>\n  <text x=\"373\" y=\"100\" font-size=\"10\" fill=\"#1e40af\" text-anchor=\"middle\">Dialect is how Tare translates an OpenAI request for that upstream</text>\n\n  <!-- 五个选项五种语义，正是因为它们不是同一件事的五种变体：\n       蓝 = 默认那一档；紫 = 另一套 OpenAI 格式，最容易和它搞混；\n       橙 = 请求体会被真正改写；绿 = 本地、不校验凭据；\n       粉 = 全靠你自己填完整 URL，也是最容易填错的一档。 -->\n  <rect x=\"22\" y=\"142\" width=\"118\" height=\"72\" rx=\"6\" fill=\"#dbeafe\" stroke=\"#3b82f6\"/>\n  <text x=\"81\" y=\"165\" font-size=\"12\" fill=\"#1e40af\" text-anchor=\"middle\">OpenAI</text>\n  <text x=\"81\" y=\"183\" font-size=\"10\" fill=\"#1e40af\" text-anchor=\"middle\">(messages)</text>\n  <text x=\"81\" y=\"198\" font-size=\"10\" fill=\"#1e40af\" text-anchor=\"middle\">/chat/completions</text>\n\n  <rect x=\"168\" y=\"142\" width=\"118\" height=\"72\" rx=\"6\" fill=\"#f3e8ff\" stroke=\"#a855f7\"/>\n  <text x=\"227\" y=\"165\" font-size=\"12\" fill=\"#6b21a8\" text-anchor=\"middle\">Responses</text>\n  <text x=\"227\" y=\"183\" font-size=\"10\" fill=\"#6b21a8\" text-anchor=\"middle\">(input)</text>\n  <text x=\"227\" y=\"198\" font-size=\"10\" fill=\"#6b21a8\" text-anchor=\"middle\">/responses</text>\n\n  <rect x=\"314\" y=\"142\" width=\"118\" height=\"72\" rx=\"6\" fill=\"#fef3c7\" stroke=\"#f59e0b\"/>\n  <text x=\"373\" y=\"165\" font-size=\"12\" fill=\"#b45309\" text-anchor=\"middle\">Anthropic</text>\n  <text x=\"373\" y=\"183\" font-size=\"10\" fill=\"#b45309\" text-anchor=\"middle\">Messages API</text>\n  <text x=\"373\" y=\"198\" font-size=\"10\" fill=\"#b45309\" text-anchor=\"middle\">/messages</text>\n\n  <rect x=\"460\" y=\"142\" width=\"118\" height=\"72\" rx=\"6\" fill=\"#d1fae5\" stroke=\"#22c55e\"/>\n  <text x=\"519\" y=\"165\" font-size=\"12\" fill=\"#166534\" text-anchor=\"middle\">LM Studio</text>\n  <text x=\"519\" y=\"183\" font-size=\"10\" fill=\"#166534\" text-anchor=\"middle\">Local server</text>\n  <text x=\"519\" y=\"198\" font-size=\"10\" fill=\"#166534\" text-anchor=\"middle\">/chat/completions</text>\n\n  <rect x=\"606\" y=\"142\" width=\"118\" height=\"72\" rx=\"6\" fill=\"#fce7f3\" stroke=\"#ec4899\"/>\n  <text x=\"665\" y=\"165\" font-size=\"12\" fill=\"#9d174d\" text-anchor=\"middle\">Custom</text>\n  <text x=\"665\" y=\"183\" font-size=\"10\" fill=\"#9d174d\" text-anchor=\"middle\">No path join</text>\n  <text x=\"665\" y=\"198\" font-size=\"10\" fill=\"#9d174d\" text-anchor=\"middle\">Full URL</text>\n\n  <!-- 脚注两行，同为 10px、行距 15px，与标题同一条中轴 373。\n       第一条是原文 WARNING 的落点：Dialect 按渠道选、不按域名猜，\n       因为同一个域名下两种格式可以并存。\n       第二条是「地址和 Dialect 是一对」那条 WARNING 的另一半。 -->\n  <text x=\"373\" y=\"254\" font-size=\"10\" fill=\"#64748b\" text-anchor=\"middle\">Pick Dialect per channel, not by domain. One gateway may mix Chat Completions and Responses.</text>\n  <text x=\"373\" y=\"269\" font-size=\"10\" fill=\"#64748b\" text-anchor=\"middle\">Changing only the address, or only the Dialect, sends the upstream the wrong shape.</text>\n</svg>\n","en-channels-verify-flow":"<svg viewBox=\"0 0 640 210\" width=\"640\" role=\"img\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Three checks before a channel goes live</title>\n  <desc>Before real traffic, run three checks: probe Dialect with an empty body, test address, key, and Dialect, then send one real sentence. None of the three is billed as your call.</desc>\n  <style>\n    text { font-family: 'PingFang SC', 'Microsoft YaHei', 'Noto Sans CJK SC', system-ui, sans-serif; }\n  </style>\n  <defs>\n    <marker id=\"arrow-blue\" markerWidth=\"8\" markerHeight=\"8\" refX=\"2\" refY=\"4\" orient=\"auto\" markerUnits=\"userSpaceOnUse\">\n      <path d=\"M0,0 L8,4 L0,8 L2,4 z\" fill=\"#3b82f6\"/>\n    </marker>\n    <marker id=\"arrow-orange\" markerWidth=\"8\" markerHeight=\"8\" refX=\"2\" refY=\"4\" orient=\"auto\" markerUnits=\"userSpaceOnUse\">\n      <path d=\"M0,0 L8,4 L0,8 L2,4 z\" fill=\"#f59e0b\"/>\n    </marker>\n  </defs>\n\n  <!-- 浅色画布：图被贴到深色页面上时，仍然读作一张白卡片 -->\n  <rect x=\"0\" y=\"0\" width=\"640\" height=\"210\" fill=\"#ffffff\"/>\n\n  <!-- 版式算术在任何坐标落笔之前就定死了。\n       三道检查排成一行：宽 180、间距 28，于是 22..202 / 230..410 / 438..618。\n       必须排成一行：块间距检查按「竖直方向有重叠」判定同行，同行就量水平净距、\n       必须 25–30px；而这三步本来就是一条顺序，摆成别的形状反而读不出顺序。\n       框高三行 = 12 x 3 + 2 x 18 = 72，顶边 60、底边 132，行心 y = 96。\n       最宽的一行字是第三格里的「给一串步骤，不是一个成败结果」= 14 x 10 = 140px，\n       180 的框宽给它留了左右各 20px 内边距。\n       内容左右边界 22..618，中心 320；viewBox 宽 = 596 + 两侧各 22 = 640；\n       标题与两条脚注都落在 320，和框体包围盒的中心是同一个数。\n       高度 = 脚注末行基线 185 + 下伸 2.5 + 22px 边距 = 209.5，取整 210。 -->\n\n  <!-- 标题落在内容中心 320。y = 22 + 16 x 0.75 -->\n  <text x=\"320\" y=\"34\" font-size=\"16\" fill=\"#1e293b\" text-anchor=\"middle\">Three checks before a channel goes live</text>\n\n  <!-- 第 1 层：两条短横线，起点 = 源框右沿 + 5，终点 = 目标框左沿 - 11，\n       留 12px 可见线。两条都在行心 96 上，与三个框同轴。 -->\n  <path d=\"M207,96 L 219,96\" fill=\"none\" stroke=\"#3b82f6\" stroke-width=\"1.5\" marker-end=\"url(#arrow-blue)\"/>\n  <path d=\"M415,96 L 427,96\" fill=\"none\" stroke=\"#f59e0b\" stroke-width=\"1.5\" marker-end=\"url(#arrow-orange)\"/>\n\n  <!-- 第 2 层：方框和文字，盖住线头。\n       三行框的基线 = 框心 + 12 x 0.35 再按 -13 / +5 / +20 摊开，落在 83 / 101 / 116。\n       三种颜色对应三种性质，不是同一件事的三次重复：\n       蓝是「输入」——探测只发一个空 body，一个 token 也不花；\n       橙是「处理中」——测试连通给的是一串步骤，要你自己看卡在哪一步；\n       绿是「输出」——只有这一步真的产出了一句模型回复。 -->\n  <rect x=\"22\" y=\"60\" width=\"180\" height=\"72\" rx=\"6\" fill=\"#dbeafe\" stroke=\"#3b82f6\"/>\n  <text x=\"112\" y=\"83\" font-size=\"12\" fill=\"#1e40af\" text-anchor=\"middle\">1 · Probe Dialect</text>\n  <text x=\"112\" y=\"101\" font-size=\"10\" fill=\"#1e40af\" text-anchor=\"middle\">Send an empty body</text>\n  <text x=\"112\" y=\"116\" font-size=\"10\" fill=\"#1e40af\" text-anchor=\"middle\">See which required field it wants</text>\n\n  <rect x=\"230\" y=\"60\" width=\"180\" height=\"72\" rx=\"6\" fill=\"#fef3c7\" stroke=\"#f59e0b\"/>\n  <text x=\"320\" y=\"83\" font-size=\"12\" fill=\"#b45309\" text-anchor=\"middle\">2 · Test connectivity</text>\n  <text x=\"320\" y=\"101\" font-size=\"10\" fill=\"#b45309\" text-anchor=\"middle\">Address, key, and Dialect</text>\n  <text x=\"320\" y=\"116\" font-size=\"10\" fill=\"#b45309\" text-anchor=\"middle\">A list of steps, not pass/fail</text>\n\n  <rect x=\"438\" y=\"60\" width=\"180\" height=\"72\" rx=\"6\" fill=\"#d1fae5\" stroke=\"#22c55e\"/>\n  <text x=\"528\" y=\"83\" font-size=\"12\" fill=\"#166534\" text-anchor=\"middle\">3 · Send one sentence</text>\n  <text x=\"528\" y=\"101\" font-size=\"10\" fill=\"#166534\" text-anchor=\"middle\">Actually talk to the model</text>\n  <text x=\"528\" y=\"116\" font-size=\"10\" fill=\"#166534\" text-anchor=\"middle\">Name, balance, content policy</text>\n\n  <!-- 脚注两行，同为 10px、行距 15px，与标题同一条中轴 320。\n       前两项「一个 token 也不花」和第 3 步「花真实 token 但不计费、\n       不进 Call Traces」是原文两条 NOTE 各说了一半，这里拼成一对，\n       放在脚注里是因为框内只剩两行的地方。 -->\n  <text x=\"320\" y=\"170\" font-size=\"10\" fill=\"#64748b\" text-anchor=\"middle\">None of the three is a real call of yours. The first two spend no tokens.</text>\n  <text x=\"320\" y=\"185\" font-size=\"10\" fill=\"#64748b\" text-anchor=\"middle\">Step 3 spends real upstream tokens on a short reply. It is not billed and skips Call Traces.</text>\n</svg>\n","en-channels-health-states":"<svg viewBox=\"0 0 610 276\" width=\"610\" role=\"img\" xmlns=\"http://www.w3.org/2000/svg\">\n  <title>Channel health: three states, one timeline</title>\n  <desc>The channel health page answers why your own channel stopped receiving traffic: healthy, degraded, or disabled, plus success rate, average latency, the last failure, and a timestamped timeline.</desc>\n  <!-- 熔断与冷却试水取自 10-routing-路由.md「熔断」；探测参数见 17-limits-限流与配额.md。 -->\n  <style>\n    text { font-family: 'PingFang SC', 'Microsoft YaHei', 'Noto Sans CJK SC', system-ui, sans-serif; }\n  </style>\n  <defs>\n    <marker id=\"arrow-blue\" markerWidth=\"8\" markerHeight=\"8\" refX=\"2\" refY=\"4\" orient=\"auto\" markerUnits=\"userSpaceOnUse\">\n      <path d=\"M0,0 L8,4 L0,8 L2,4 z\" fill=\"#3b82f6\"/>\n    </marker>\n  </defs>\n\n  <!-- 浅色画布：图被贴到深色页面上时，仍然读作一张白卡片 -->\n  <rect x=\"0\" y=\"0\" width=\"610\" height=\"276\" fill=\"#ffffff\"/>\n\n  <!-- 版式算术在任何坐标落笔之前就定死了。\n       三个状态同宽同高：宽 170、高 54（两行：12 x 3 + 18），排成一行，\n       x = 22..192 / 220..390 / 418..588，间距 28px，顶边 60、底边 114。\n       状态用 rx=18（普通组件框是 6），一行读下来才像「状态」而不是「零件」。\n       时间线那条横幅横跨整行 22..588，顶边 142、底边 196，与上一行留 28px。\n       内容左右边界 22..588，中心 305；viewBox 宽 = 566 + 两侧各 22 = 610；\n       标题与两条脚注都落在 305，和框体包围盒的中心是同一个数。\n       高度 = 脚注末行基线 251 + 下伸 2.5 + 22px 边距 = 275.5，取整 276。\n\n       ⚠️ 为什么这张不是状态机：三态之间的迁移，原文没有写过。\n       原文只写了「每一次被停用、每一次恢复都带着时间戳」——那是时间线上的事件，\n       不是一条画得出来的状态边；「降级」怎么进、怎么出，更是连事件名都没有。\n       摆成状态机就会凭空造出三条并不存在的迁移边。所以这里画成\n       「三种状态 + 一条记录它们变化的时间线」，顺序从左到右只表示由好到坏。 -->\n\n  <!-- 标题落在内容中心 305。y = 22 + 16 x 0.75 -->\n  <text x=\"305\" y=\"34\" font-size=\"16\" fill=\"#1e293b\" text-anchor=\"middle\">Channel health: three states, one timeline</text>\n\n  <!-- 第 1 层：一条竖向连线，起点 = 状态行底边 + 5，终点 = 时间线顶边 - 11。\n       它只表示「这些状态的变化被这条时间线记下来」，不是一条状态迁移。\n       落在中轴 305 而不是某个格心，是因为三个状态共用同一条时间线。 -->\n  <path d=\"M305,119 L 305,131\" fill=\"none\" stroke=\"#3b82f6\" stroke-width=\"1.5\" marker-end=\"url(#arrow-blue)\"/>\n\n  <!-- 第 2 层：状态框和文字，盖住线头。\n       两行框的基线 = 框心 + 12 x 0.35 再上下各让 9px，于是 82 / 100。\n       绿 = 还在正常发流量；橙 = 失败率越过阈值；粉 = 不再发新流量。\n       三个状态给三种颜色，是因为它们的后果完全不同。 -->\n  <rect x=\"22\" y=\"60\" width=\"170\" height=\"54\" rx=\"18\" fill=\"#d1fae5\" stroke=\"#22c55e\"/>\n  <text x=\"107\" y=\"82\" font-size=\"12\" fill=\"#166534\" text-anchor=\"middle\">Healthy</text>\n  <text x=\"107\" y=\"100\" font-size=\"10\" fill=\"#166534\" text-anchor=\"middle\">Still sending traffic</text>\n\n  <rect x=\"220\" y=\"60\" width=\"170\" height=\"54\" rx=\"18\" fill=\"#fef3c7\" stroke=\"#f59e0b\"/>\n  <text x=\"305\" y=\"82\" font-size=\"12\" fill=\"#b45309\" text-anchor=\"middle\">Degraded</text>\n  <text x=\"305\" y=\"100\" font-size=\"10\" fill=\"#b45309\" text-anchor=\"middle\">Failure rate over the line</text>\n\n  <rect x=\"418\" y=\"60\" width=\"170\" height=\"54\" rx=\"18\" fill=\"#fce7f3\" stroke=\"#ec4899\"/>\n  <text x=\"503\" y=\"82\" font-size=\"12\" fill=\"#9d174d\" text-anchor=\"middle\">Disabled</text>\n  <text x=\"503\" y=\"100\" font-size=\"10\" fill=\"#9d174d\" text-anchor=\"middle\">No new traffic</text>\n\n  <!-- 时间线横幅：蓝是「输入」那一组，这一页所有结论都从这条线读出来。\n       两行框的基线落在 164 / 182（框心 169 + 12 x 0.35，再上下各让 9px）。 -->\n  <rect x=\"22\" y=\"142\" width=\"566\" height=\"54\" rx=\"6\" fill=\"#dbeafe\" stroke=\"#3b82f6\"/>\n  <text x=\"305\" y=\"164\" font-size=\"12\" fill=\"#1e40af\" text-anchor=\"middle\">Timeline: every disable and every recovery has a timestamp</text>\n  <text x=\"305\" y=\"182\" font-size=\"10\" fill=\"#1e40af\" text-anchor=\"middle\">The same page shows success rate, latency, and the last failure</text>\n\n  <!-- 脚注两行，同为 10px、行距 15px，与标题同一条中轴 305。\n       第一条把「已停用」和路由篇的「停靠／熔断」对上：这不是本文的说法，\n       是原文路由篇写明「停靠状态只在渠道健康页出现」后两边拼起来的。\n       第二条是原文对这一页最重要的一条限定：它是内存窗口，不是历史。 -->\n  <text x=\"305\" y=\"236\" font-size=\"10\" fill=\"#64748b\" text-anchor=\"middle\">Disabled is what routing calls parked: 5 counted failures open the breaker. A successful probe restores it.</text>\n  <text x=\"305\" y=\"251\" font-size=\"10\" fill=\"#64748b\" text-anchor=\"middle\">Live state here is in memory and clears on restart. To see a past outage, use the timeline API.</text>\n</svg>\n"}}