use ask_llm::{Client, Model};
use base64::Engine;
#[tokio::main]
async fn main() {
v_utils::clientside!();
let test_content = "Hello, this is a test document.\nIt has multiple lines.\nLine 3 here.";
let base64_data = base64::engine::general_purpose::STANDARD.encode(test_content.as_bytes());
let response = Client::default()
.model(Model::Fast)
.max_tokens(100)
.append_file(base64_data, "text/plain".to_string())
.ask("How many lines are in the attached document?")
.await
.unwrap();
println!("Inline attachment response:\n{response:#?}\n");
}