Module replicate_rust::version
source · Expand description
Used to interact with the Model Versions Endpoints.
Example
use replicate_rust::Replicate;
let replicate = Replicate::new();
// List the versions of a model.
match replicate.models.versions.list(String::from("replicate"), String::from("hello-world")) {
Ok(result) => println!("Success : {:?}", result),
Err(e) => println!("Error : {}", e),
};
// Get the details of a model version.
match replicate.models.versions.get(
String::from("kvfrans"),
String::from("clipdraw"),
String::from("5797a99edc939ea0e9242d5e8c9cb3bc7d125b1eac21bda852e5cb79ede2cd9b"),
) {
Ok(result) => println!("Success : {:?}", result),
Err(e) => println!("Error : {}", e),
};