feat: add chat completion without streaming

This commit is contained in:
Ivan Gabriele
2024-03-03 15:20:30 +01:00
commit 7d3b438d16
24 changed files with 1113 additions and 0 deletions

17
Cargo.toml Normal file
View File

@@ -0,0 +1,17 @@
[package]
name = "mistralai-client"
description = "Mistral AI API client library for Rust (unofficial)."
license = "Apache-2.0"
version = "0.0.0"
edition = "2021"
[dependencies]
minreq = { version = "2.11.0", features = ["https-rustls", "json-using-serde"] }
serde = { version = "1.0.197", features = ["derive"] }
serde_json = "1.0.114"
thiserror = "1.0.57"
tokio = { version = "1.36.0", features = ["full"] }
[dev-dependencies]
dotenv = "0.15.0"
jrest = "0.2.3"