Skip to main content

relay

Function relay 

Source
fn relay(
    response: Response,
    grant: &Grant,
    model: &'static Model,
    price_factor: f64,
) -> Response
Expand description

The upstream’s answer, streamed through a meter that reads its usage. price_factor is what the route’s listed prices are multiplied by when the response has no charge of its own to count (Bedrock’s us profile costs more).