Skip to main content

completion_with_fallback

Function completion_with_fallback 

Source
pub async fn completion_with_fallback(
    router: &Router,
    request: &Value,
    config: &FallbackConfig,
    logger: Option<&Logger>,
) -> Result<Value>
Expand description

Run a completion with retry + fallback across multiple models.