docs(readme): fix list models example

This commit is contained in:
Ivan Gabriele
2024-03-04 03:27:20 +01:00
parent 0386b95b7b
commit bbba6b9878

View File

@@ -125,7 +125,7 @@ fn main() {
// This example suppose you have set the `MISTRAL_API_KEY` environment variable. // This example suppose you have set the `MISTRAL_API_KEY` environment variable.
let client = Client::new(None, None, None, None); let client = Client::new(None, None, None, None);
let result = client.list_models(model, messages, Some(options)).unwrap(); let result = client.list_models().unwrap();
println!("First Model ID: {:?}", result.data[0].id); println!("First Model ID: {:?}", result.data[0].id);
// => "First Model ID: open-mistral-7b" // => "First Model ID: open-mistral-7b"
} }