upstream block handles rewriting the outgoing HTTP Path and Query Parameters before ONR dispatches the request to the upstream target.
Path Mutation
You can completely replace the original request path usingset_path.
/v1/chat/completions or /v1/messages, the upstream provider always sees the path defined by set_path.
Query Parameter Operations
You can inject, override, or delete specific URL query parameters before dispatch.Setting/Modifying Queries
$channel.key without quotes evaluates the variable dynamically. Specifying "$channel.key" inside quotes treats it as a literal string.
Deleting Queries
Execution Order: When handling query parameters, ONR always executes alldel_querydirectives first, followed by theset_querydirectives.