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, Authentication};
#[tokio::main]
fn main() {
let client = Client::new("ALEPH_ALPHA_API_TOKEN").await;
let model = "luminous-base";
let task = TaskCompletion {
prompt: Prompt::from_text("The most important thing is"),
maximum_tokens: 64,
sampling: Sampling::MOST_LIKELY,
};
let response = client.complete(model, &task).await.unwrap();
println!("The most important thing is{}", response.completion);
}
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 intefaces to break.