router-llm
Skill8.2k starsChanged 58 days agoApache-2.0View on GitHub
What the LLM router can be asked for, what each provider calls it, and what it refuses to fake. Read before adding a response parameter or an LLM provider.
Adopted by
Steady: 0 new projects took it in the last 4 weeks, none the 4 weeks before.thin data
Who's talking about GetStream/Agents
- sudosubin/agents.nix“agent-skills.github.getstream.agents: 0.6.404 → 0.6.405”GitHub · Nov 30, 2026
- sudosubin/agents.nix“agent-skills.github.getstream.agents: 0.6.403 → 0.6.404”GitHub · Nov 30, 2026
- sudosubin/agents.nix“agent-skills.github.getstream.agents: 0.6.402 → 0.6.403”GitHub · Nov 29, 2026
- sudosubin/agents.nix“agent-skills.github.getstream.agents: 0.6.399 → 0.6.402”GitHub · Nov 27, 2026
- sudosubin/agents.nix“agent-skills.github.getstream.agents: 0.7.1 → 0.6.399”GitHub · Nov 27, 2026
The biggest 5 of 8 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 8
Talked about on GitHub (8 times).
On GitHub · 8
- Nov 30, 2026agent-skills.github.getstream.agents: 0.6.404 → 0.6.405 — sudosubin/agents.nix0 reactions
- Nov 30, 2026agent-skills.github.getstream.agents: 0.6.403 → 0.6.404 — sudosubin/agents.nix0 reactions
- Nov 29, 2026agent-skills.github.getstream.agents: 0.6.402 → 0.6.403 — sudosubin/agents.nix0 reactions
- Nov 27, 2026agent-skills.github.getstream.agents: 0.6.399 → 0.6.402 — sudosubin/agents.nix0 reactions
- Nov 27, 2026agent-skills.github.getstream.agents: 0.7.1 → 0.6.399 — sudosubin/agents.nix0 reactions
3 more on GitHub
- Nov 25, 2026fix: retain 7 reviewed references that left discovery (Nov 25) — tekvisions/voice-index0 reactions
- Nov 24, 2026agent-skills.github.getstream.agents: 0.7.0 → 0.7.1 — sudosubin/agents.nix0 reactions
- Nov 17, 2026agent-skills.github.getstream.agents: init at 0.7.0 — sudosubin/agents.nix0 reactions
In this repository55 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .cursor/rules/python.mdcCursor rule
- pr-reviewSkill
- typesafe-aiSkill
- vgpuSkill
- accelerate-sales-engineerSkill
- add-connectorSkill
- check_pricesSkill
- cliSkill
- commitSkill
- connectorsSkill
- dashboardSkill
- decision_modelSkill
- deploySkill
- docsSkill
- generative-uiSkill
- good_morningSkill
- goSkill
- go-testingSkill
- integrate_new_modelsSkill
- llm-interfaceSkill
- loop_performance_benchSkill
- migrate-to-accelerateSkill
- new_modelsSkill
- paginationSkill
- parallel-agentsSkill
- performance_benchmarkSkill
- phonecheckSkill
- pricingSkill
- prospect-competitor-researchSkill
- provider_auditSkill
- prSkill
- querySkill
- refresh_model_statsSkill
- router-detectionSkill
- router-interfaceSkill
- router-searchSkill
- router-stsSkill
- router-sttSkill
- router-ttsSkill
- scheduled-tasksSkill
- sdk-dartSkill
- sdk-dotnetSkill
- sdk-goSkill
- sdk-jsSkill
- sdk-kotlinSkill
- sdk-phpSkill
- sdk-rubySkill
- sdk-rustSkill
- sdkSkill
- sdk-swiftSkill
- securitySkill
- sttSkill
- telnyxSkill
- ttsSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 2 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 56
Render earlier messages the same way every time: Don't reorder or rewrite them, and don't put a cache breakpoint on a mid-conversation …
- Distinctive: line 66
Thinking does not survive the crossing: Every provider that reasons wants its own reasoning handed back on the next turn: Anthropic's …
- Very specific: line 76
Not by supports: — options.LLM.Terms() returns nothing, because every provider here speaks the whole of the response parameters.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Routing completions
The per-modality half of router-interface. The vocabulary is
ResponseParams, and
options.LLM is the subset a router config
holds as defaults. It is deliberately the same vocabulary rather than a second one for the same
things, so nothing is translated on the way through.
The router speaks OpenAI's Responses shape because that is what most of the field now speaks:
instructions separate from input, one stream per response, tool calls as events. Providers that
only offer chat completions are adapted in
openaicompat.
There is only one path here. A completion is already whole by the time it is returned, so there
is no recording() — what the socket buys is the answer arriving as it is written.
The top six, and what each calls the same thing
| Option | OpenAI | Anthropic | Gemini Flash | xAI Grok | Muse | DeepSeek |
instructions | instructions | system | systemInstruction | instructions, or a first system message | instructions | first system message |
input | input | messages | contents | input | input | messages |
max_output_tokens | max_output_tokens | max_tokens (required) | generationConfig.maxOutputTokens | max_output_tokens | max_output_tokens | max_tokens |
temperature | dropped on reasoning models | 1.0, or 400 | 0–2, and don't | 0–2 | 0–2 | ignored while thinking |
reasoning_effort | reasoning.effort, none–max | output_config.effort, low–max | thinkingConfig.thinkingLevel, low–high | reasoning.effort, low–xhigh | reasoning.effort, minimal–max | thinking, then reasoning_effort |
format | text.format | output_config.format | responseMimeType, responseSchema | text.format | text.format | response_format, JSON but not a schema |
verbosity | text.verbosity | — | — | — | 400 | accepted, then ignored |
tools, tool_choice | auto, none, required | auto, any, tool, none | functionDeclarations, functionCallingConfig.mode | auto, none, required | auto and nothing else | auto, none, required, named |
store, previous_response_id | both, kept 30 days; a Zero Data Retention org refuses previous_response_id, so we send store: false | — | the Interactions API only | both, kept 30 days | both | — |
prompt_cache_key | prompt_cache_key | cache_control breakpoints, four of them | implicit over 4k tokens, or a cachedContents resource | prompt_cache_key, which is x-grok-conv-id | prompt_cache_key | automatic, by prefix |
| cache TTL | prompt_cache_options.ttl, which is 30m | 5m or 1h | whatever the explicit cache was made with | — | prompt_cache_retention, as a hint | — |
metadata | metadata, safety_identifier | metadata.user_id | labels, Interactions only | accepted, then ignored | metadata | user_id |
What the table is saying:
- Thinking is not one scale, and it is mostly not optional any more. The ladders run from
three rungs to seven, and Gemini Flash, Grok and Muse cannot be told not to think at all:
Muse takes
noneand answers 400, Gemini tookminimalaway in 3.8 Flash. OpenAI's 5.6 family and DeepSeek still have an off switch, which is what a live tier is built on. There is no honest common scale, which is why each model declares the words it answers to. - Temperature is being withdrawn. Anthropic rejects anything but 1.0 on models after Opus
4.6, OpenAI's own migration guide says to remove it on reasoning models, Gemini takes it and
warns that below 1.0 the model loops, and DeepSeek accepts it and ignores it while thinking is
on.
Temperatureis a pointer for exactly this reason: saying nothing is the only portable thing left to say. - Caching is four unrelated mechanisms. A key you choose, breakpoints you place, a prefix
match you get for free, and a cache you create as a resource and point at.
prompt_cache_keyis the first; the rest is the provider's. TTL is not a duration anyone picks either — 30m or nothing, 5m or 1h, a hint, or no say at all — which is whyCacheTTLsis a list of what a provider accepts rather than a number. - Render earlier messages the same way every time. Don't reorder or rewrite them, and
don't put a cache breakpoint on a mid-conversation system message: every request has to open
with the one before it, or the cache is lost (see
internal/harness/AGENTS.md). - The conversation still lives in the caller, though it no longer has to. OpenAI, Grok,
Muse and Gemini's Interactions API will all hold it now; Anthropic and DeepSeek will not.
Sending it whole every time is what makes a failover to one of those two work, and what lets
consecutive turns be answered by different providers. No provider here continues from
previous_response_ideither: an OpenAI organisation with Zero Data Retention refuses it, a customer's own key can belong to one, and a continued response is billed for the whole chain anyway. - Thinking does not survive the crossing. Every provider that reasons wants its own
reasoning handed back on the next turn: Anthropic's signed blocks, Gemini's thought signatures
(a missing one is a 400 on a function call), Grok's encrypted content (omitting it is their
own top cause of cache misses), Muse's encrypted replay, and DeepSeek's
reasoning_content, which has to be replayed when tools are in play and left out when they are not. It is opaque, it is per provider, and it means nothing to the next one, so it belongs to the turn it came from and is dropped when the provider changes.
What the router refuses to fake
Not by supports: — options.LLM.Terms() returns nothing, because every provider here speaks
the whole of the response parameters. It is
Capabilities instead, checked before the
request goes out:
- A reasoning effort the model does not accept is an error. Not silently dropped, and not passed through either, because a provider's own answer to an unknown effort is a 400 halfway through a phone call.
- A verbosity the model does not accept is an error, where the model accepts any.
storemeans nothing to a provider that does not reportStore. Aprevious_response_idorconversationthe model cannot hold is refused, because the answer would be made from only the newest messages, and asking for both is refused as a contradiction.- A cache TTL a provider does not offer is dropped, since the request still works and only costs more.
The rule of thumb: refuse what changes the answer, drop what changes only the bill, and say which in a comment.
The providers themselves are the argument for keeping this table. Grok 4.5 takes xhigh and
runs at high without saying so, and DeepSeek takes text.verbosity and does nothing with it.
Both are worse than a 400, because the request looks answered. Muse is the same problem one
level up: its tool_choice accepts only auto, so a request that says required is a
different set of candidates rather than a preference to pass along and hope for.
Data policy and overwrites
Neither exists here yet, and both should. options.STT and options.Search carry a
DataPolicy and an Overwrites map, and every STT model in
router.yaml declares its
data_handling; options.LLM carries neither and the llm: section declares none. The shape
is the one the other two already use:
llm:
providers: [openai, gemini]
data_policy:
allow_training: false
retention: none
overwrites:
gemini:
thinking_budget: 2048It matters more here than it does for audio. Muse encodes the training decision in the model
id, so muse-spark-1.3-contributor is a tenth of the price and a licence to train on both the
prompts and the answers, one suffix away from the model that is not. And a model name is not
a contract: the DeepSeek weights this deployment routes to are served by Baseten under
Baseten's terms, not the ones on DeepSeek's own platform, where the privacy policy claims
training rights and names no retention window. That is why data_handling is declared per model
in the router's config rather than per vendor in anybody's documentation.
Overwrites are where the leftovers go — Gemini's legacy thinkingBudget, Anthropic's
thinking.type, Grok's search_parameters, Muse's search_context_size — with each provider
parsing its own block into a typed struct so an unknown field is refused rather than dropped.
Adding a parameter
- A field on
ResponseParams, and onoptions.LLMplusMergeif a config should be able to default it. - The same field on
LlmOptions, on its Go struct ininternal/api. Then rungo run ./cmd/openapiand regenerate all three clients. - Send it in each provider that takes it, and add a
Capabilitiesfield plus aValidatecase if the answer changes when it is ignored. - A test in
llmtestso every provider is held to the same behaviour.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

