Switching Models

use orpheus::prelude::*;
fn main() -> anyhow::Result<()> {
let client = Orpheus::new("Your-API-Key");
let prompt = "Who are you?";
let models = [
"anthropic/claude-3.5-haiku".to_string(),
"openai/chatgpt-4o-latest".into(),
"moonshotai/kimi-k2".into(),
];
for model in models.into_iter() {
let res = client.chat(prompt).model(&model).send()?;
println!("{}: {}\n", model, res.content()?);
}
Ok(())
}Last updated
Was this helpful?