Model Routers
use orpheus::prelude::*;
fn main() {
let client = Orpheus::new("Your-API-Key");
let res = client
.chat("Who is the president of Tasmania?")
.model("openrouter/auto")
.send()
.unwrap();
println!("Model picked: {}", res.model);
println!("Response: {}", res.content().unwrap());
}Model picked: openai/chatgpt-4o-latest
Response: Tasmania is not an independent country, so it does not have a president. It is a state of Australia. The head of government in Tasmania is the **Premier**, not a president.Last updated
Was this helpful?