feat!: wrap Client::new() return in a Result

BREAKING CHANGE: `Client::new()` now returns a `Result`.
This commit is contained in:
Ivan Gabriele
2024-03-04 04:43:16 +01:00
parent 1deab88251
commit 33876183e4
7 changed files with 25 additions and 20 deletions

View File

@@ -3,7 +3,7 @@ use mistralai_client::v1::client::Client;
#[test]
fn test_client_list_models() {
let client = Client::new(None, None, None, None);
let client = Client::new(None, None, None, None).unwrap();
let response = client.list_models().unwrap();