pub fn apply_google(
doc: &mut Value,
effort: Effort,
model: Option<&str>,
) -> boolExpand description
Set the Gemini thinking control that matches model’s generation on a
generateContent request (thinkingLevel for 3.x, thinkingBudget for
2.5). model comes from the request URL path — Gemini carries it there, not
in the body — threaded in by the Google handler. No-op when the model is
unknown/excluded, when the client already pinned either thinking field (never
override, and never end up with both → 400), or on an unexpected body shape.