pub fn resolved_model<'a>(
response: &'a ChatResponse,
requested: &'a str,
) -> &'a strExpand description
The model slug this turn should be attributed to (#1475 bug 2).
Why: run_task::recorder::RecordingLlmClient must record what the provider
actually ran, not merely what was asked for — a routing/fallback slug
(:auto, a multi-model alias) can resolve to a different concrete model,
and pricing the turn against the requested slug would then be wrong.
What: the response’s model when non-empty, else requested.
Test: resolved_model_prefers_response_model,
resolved_model_falls_back_to_requested.