use safi::{chat::chat, transcription::transcribe, translation::translate};
use tokio;
#[tokio::main]
async fn main() {
let api_key = "key";
match chat("Hello, Safi!", api_key).await {
Ok(response) => println!("Chat response: {}", response),
Err(e) => eprintln!("Error: {}", e),
}
match transcribe("https://safi.insolify.com/audio.mp3", api_key).await {
Ok(response) => println!("Transcription: {}", response),
Err(e) => eprintln!("Error: {}", e),
}
match translate("How far bro!", "pidgin", api_key).await {
Ok(response) => println!("Translation: {}", response),
Err(e) => eprintln!("Error: {}", e),
}
}