13 lines
330 B
Rust
13 lines
330 B
Rust
use jrest::expect;
|
|
use mistralai_client::v1::client::Client;
|
|
|
|
#[test]
|
|
fn test_client_list_models() {
|
|
let client = Client::new(None, None, None, None).unwrap();
|
|
|
|
let response = client.list_models().unwrap();
|
|
|
|
expect!(response.object).to_be("list".to_string());
|
|
expect!(response.data.len()).to_be_greater_than(0);
|
|
}
|