Request pipeline (simplified)
- Auth (recommended:
Authorization: Bearer <access-key>) - Provider selection
- DSL execution in phases (
defaultsthen selectedmatch) - Upstream call and response strategy (passthrough / JSON map / SSE parse)
- Optional usage extraction and pricing
Provider selection priority
x-onr-provider: <provider>header (force)models.yamlrouting (per model round-robin)
DSL phases (execution engine)
Typical phases:upstream_config: base URLauth: header shape and optional OAuth exchangerequest: header/query/JSON patching, request mappingupstream: set upstream path/queryresponse: passthrough / resp_map / sse_parseerror: error_mapmetrics: usage extraction and finish_reason extraction