ADR 0001: Standard wires and unified tier selector
Why what-if uses zero custom request headers and unifies semantic tiers with raw model IDs under a single model field.
Context
what-if prioritizes Roundhouse as its primary gateway while also supporting standalone endpoints (llama.cpp, vLLM, FastFlowLM, TypeSafe, OpenAI, OpenRouter, Liquid AI) using only base_url, api_key, and model. Exposing separate tier and model parameters causes LLM callers to populate both ambiguously or hallucinate chat model IDs.
Decision
- Zero custom request headers: Send only standard
Authorization: Bearer <key>and standard wire payloads (POST /v1/systemone,POST /v1/decisions,POST /v1/rerank,GET /v1/models). Roundhouse keys enforcedata_classserver-side,prompt_cache_keymaps automatically to replica affinity, andimages/filesdata URLs are native System One fields. - Single unified
modelparameter: Callers may omitmodel(defaults tofastfor text/image oromniwhen audio/video media is attached), pass"fast","accurate", or"omni", or pass a raw upstream model ID. Settinglock_tiers = truerestricts the MCP JSON Schemaenumto configured tiers only.
Consequences
- Prompts and MCP configurations remain portable across Roundhouse and direct engines.
- Each tier (
fast,accurate,omni) can hold its ownbase_url,api_key,wire, and calibratedmin_confidencethreshold. - Optional dialect overrides (
openrouter,liquid) remain configurable per tier for direct cloud calls without polluting standard endpoints.
Connections
Local graphLinked from
- “ADR 0001: Standard wires and unified tier selector”
- “ADR 0001: Standard wires and unified tier selector”