Files
mistralai-client-rs/tests/v1_client_list_models_test.rs
Ivan Gabriele 74bf8a96ee feat!: add function calling support to client.chat() & client.chat_async()
BREAKING CHANGE: Too many to count in this version. Check the README examples.
2024-03-09 11:40:07 +01:00

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);
}