Expand description
§Replicate Rust SDK
This is an unofficial Rust SDK for the Replicate API.
More information about this crate can be found in the crate documentation.
§Installation
Add replic
as a dependency to your Cargo.toml
$ cargo add replic
§Usage
An example to get collections
ⓘ
use replic::{client::Client, config::Config};
#[tokio::main]
async fn main() {
let config = Config::from_env().unwrap();
let client = Client::new(config).unwrap();
let collections = client.collections().await.unwrap();
println!("{:?}", collections);
}
§License
This project is licensed under the MIT license and Apache-2.0 license.