2024-03-03 15:20:30 +01:00
|
|
|
[package]
|
|
|
|
|
name = "mistralai-client"
|
|
|
|
|
description = "Mistral AI API client library for Rust (unofficial)."
|
|
|
|
|
license = "Apache-2.0"
|
Update to latest Mistral AI API (v1.0.0)
- Replace closed Model enum with flexible string-based Model type
with constructor methods for all current models (Mistral Large 3,
Small 4, Magistral, Codestral, Devstral, Pixtral, Voxtral, etc.)
- Add new API endpoints: FIM completions, Files, Fine-tuning, Batch
jobs, OCR, Audio transcription, Moderations/Classifications, and
Agent completions (sync + async for all)
- Add new chat fields: frequency_penalty, presence_penalty, stop,
n, parallel_tool_calls, reasoning_effort, min_tokens, json_schema
response format
- Add embedding fields: output_dimension, output_dtype
- Tool parameters now accept raw JSON Schema (serde_json::Value)
instead of limited enum types
- Add tool call IDs and Required tool choice variant
- Add DELETE HTTP method support and multipart file upload
- Bump thiserror to v2, add reqwest multipart feature
- Remove strum dependency (no longer needed)
- Update all tests and examples for new API
2026-03-20 17:16:26 +00:00
|
|
|
version = "1.0.0"
|
2024-03-03 15:39:16 +01:00
|
|
|
|
2024-03-03 15:20:30 +01:00
|
|
|
edition = "2021"
|
2024-03-03 15:39:16 +01:00
|
|
|
rust-version = "1.76.0"
|
|
|
|
|
|
|
|
|
|
authors = ["Ivan Gabriele <ivan.gabriele@protonmail.com>"]
|
|
|
|
|
categories = ["api-bindings"]
|
|
|
|
|
homepage = "https://github.com/ivangabriele/mistralai-client-rs#readme"
|
2024-03-03 15:43:18 +01:00
|
|
|
keywords = ["mistral", "mistralai", "client", "api", "llm"]
|
2024-03-03 15:39:16 +01:00
|
|
|
readme = "README.md"
|
|
|
|
|
repository = "https://github.com/ivangabriele/mistralai-client-rs"
|
2024-03-03 15:20:30 +01:00
|
|
|
|
|
|
|
|
[dependencies]
|
Update to latest Mistral AI API (v1.0.0)
- Replace closed Model enum with flexible string-based Model type
with constructor methods for all current models (Mistral Large 3,
Small 4, Magistral, Codestral, Devstral, Pixtral, Voxtral, etc.)
- Add new API endpoints: FIM completions, Files, Fine-tuning, Batch
jobs, OCR, Audio transcription, Moderations/Classifications, and
Agent completions (sync + async for all)
- Add new chat fields: frequency_penalty, presence_penalty, stop,
n, parallel_tool_calls, reasoning_effort, min_tokens, json_schema
response format
- Add embedding fields: output_dimension, output_dtype
- Tool parameters now accept raw JSON Schema (serde_json::Value)
instead of limited enum types
- Add tool call IDs and Required tool choice variant
- Add DELETE HTTP method support and multipart file upload
- Bump thiserror to v2, add reqwest multipart feature
- Remove strum dependency (no longer needed)
- Update all tests and examples for new API
2026-03-20 17:16:26 +00:00
|
|
|
async-stream = "0.3"
|
|
|
|
|
async-trait = "0.1"
|
|
|
|
|
env_logger = "0.11"
|
|
|
|
|
futures = "0.3"
|
|
|
|
|
log = "0.4"
|
|
|
|
|
reqwest = { version = "0.12", features = ["json", "blocking", "stream", "multipart"] }
|
|
|
|
|
serde = { version = "1", features = ["derive"] }
|
|
|
|
|
serde_json = "1"
|
|
|
|
|
thiserror = "2"
|
|
|
|
|
tokio = { version = "1", features = ["full"] }
|
|
|
|
|
tokio-stream = "0.1"
|
2024-03-03 15:20:30 +01:00
|
|
|
|
|
|
|
|
[dev-dependencies]
|
Update to latest Mistral AI API (v1.0.0)
- Replace closed Model enum with flexible string-based Model type
with constructor methods for all current models (Mistral Large 3,
Small 4, Magistral, Codestral, Devstral, Pixtral, Voxtral, etc.)
- Add new API endpoints: FIM completions, Files, Fine-tuning, Batch
jobs, OCR, Audio transcription, Moderations/Classifications, and
Agent completions (sync + async for all)
- Add new chat fields: frequency_penalty, presence_penalty, stop,
n, parallel_tool_calls, reasoning_effort, min_tokens, json_schema
response format
- Add embedding fields: output_dimension, output_dtype
- Tool parameters now accept raw JSON Schema (serde_json::Value)
instead of limited enum types
- Add tool call IDs and Required tool choice variant
- Add DELETE HTTP method support and multipart file upload
- Bump thiserror to v2, add reqwest multipart feature
- Remove strum dependency (no longer needed)
- Update all tests and examples for new API
2026-03-20 17:16:26 +00:00
|
|
|
jrest = "0.2"
|