Reasoning
Configuring Reasoning Effort
let response = client
.chat("Are zebras black with white stripes, or white with black stripes?")
.model("google/gemini-2.5-flash-lite-preview-06-17")
.with_reasoning(|reasoning| reasoning.effort(Effort::Low))
.send()?;Setting a Reasoning Budget
let response = client
.chat("Are zebras black with white stripes, or white with black stripes?")
.model("google/gemini-2.5-flash-lite-preview-06-17")
.with_reasoning(|reasoning| reasoning.max_tokens(100))
.send()?;Last updated
Was this helpful?