typesafe-ai-rs 0.1.0

Async and blocking Rust clients for the TypeSafe AI System One API
Documentation
1
2
3
4
5
6
7
8
9
use typesafe_ai_rs::Client;

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    for model in Client::new()?.models().list().await?.models {
        println!("{}: {}", model.name, model.description);
    }
    Ok(())
}