Skip to main content

ensure_model

Function ensure_model 

Source
pub fn ensure_model(request: &mut LLMRequest, default_model: &str) -> String
Expand description

Ensures the request has a non-empty model, falling back to the provider’s default. Mutates the request in place and returns the resolved model string.