Aleph Alpha API client for Rust
Interact with large language models provided by the Aleph Alpha API in Rust code.
Usage
use aleph_alpha_client::{Client, TaskCompletion, How, Task};
#[tokio::main]
fn main() {
let client = Client::with_authentication("AA_API_TOKEN").unwrap();
let model = "luminous-base";
let task = TaskCompletion::from_text("An apple a day");
let response = client.completion(&task, model, &How::default()).await.unwrap();
println!("An apple a day{}", response.completion);
}
This is a work in progress currently the Rust client is not a priority on our Roadmap, so expect this client to be incomplete. If we work on it expect interfaces to break.