Header Injection & Stripping
Often, you must attach trailing analytics IDs, specific user-agent strings, or strip out sensitive Origin headers that your clients send.Forcing Parameters (JSON Payload Manipulation)
If you want to enforce rules on your users (for instance, forcing a strict token limit, or ensuring a predictable temperature), you can mutate the JSON body dynamically.Wrapping Responses Text Input
Some clients send a simple string asinput, while an upstream expects the OpenAI Responses message-list shape.
input fields and values that are already arrays are left unchanged. Other value types are rejected.
Cross-Provider Schema Mapping
One of ONR’s superpowers is translating an OpenAI-formattedchat.completions array into a format understood by Google Gemini or Anthropic Claude, and seamlessly re-mapping the response back instantly.
To do this, simply use the req_map and resp_map directives.