use cliai::{AiBackend, Copilot, GenerateRequest};
fn main() -> Result<(), Box<dyn std::error::Error>> {
let ai = Copilot::new();
let response = ai.generate(&GenerateRequest::new(
"Explain the purpose of unit tests in Rust.",
))?;
println!("{}", response.text);
Ok(())
}