Skip to main content

request_target

Function request_target 

Source
pub fn request_target(
    target: OperationKey,
    model: &str,
    stream: bool,
) -> Result<RequestTarget, EndpointError>
Expand description

Build the upstream request target for any wired operation key. model is the upstream model id (path-templated providers embed it); stream selects the streaming variant where the wire format distinguishes it by endpoint.