Skip to main content

refusal_response

Function refusal_response 

Source
pub fn refusal_response(refusal: &Refusal, provider_label: &str) -> Response
Expand description

Renders a refusal as the wire-shape error the client’s SDK understands. Model blocks → 403, budget blocks → 429 with Retry-After.