Crates.io | mistral-rouille |
lib.rs | mistral-rouille |
version | 1.1.4 |
source | src |
created_at | 2024-06-16 05:42:19.021771 |
updated_at | 2024-06-16 05:42:19.021771 |
description | Mistral Rouille is a Rust crate customized from Mistral's official OpenAPI specification. This crate provides a convenient and type-safe interface for interacting with Mistral's API, using the Reqwest crate for HTTP requests. Designed to be easily integrated into your Rust projects, Mistral Rouille offers robust functionality for all Mistral API endpoints, ensuring seamless communication with the configured endpoint. |
homepage | |
repository | https://github.com/GovCraft/mistral-rouille |
max_upload_size | |
id | 1273281 |
size | 257,336 |
Mistral Rouille is a Rust crate customized from Mistral's official OpenAPI specification. This crate provides a convenient and type-safe interface for interacting with Mistral's API, using the Reqwest crate for HTTP requests. Designed to be easily integrated into your Rust projects, Mistral Rouille offers robust functionality for all Mistral API endpoints, ensuring seamless communication with the configured endpoint.
This API client was generated by the OpenAPI Generator project and then refined with custom templates by Govcraft. This crate will be regenerated and updated as Mistral updates it's OpenAPI specification. Additional customizations are planned.
org.openapitools.codegen.languages.RustClientCodegen
Either run:
cargo add mistral-rouille
or add to Cargo.toml
mistral-rouille = "1.1.4"
View the tests folder for a basic example executing a chat request on Mistral's newest model Codestral.
All URIs are relative to https://api.mistral.ai/v1 or https://codestral.mistral.ai/v1 if you're using Codestral
Class | Method | HTTP request | Description |
---|
DefaultApi | create_chat_completion | POST /chat/completions | Create Chat Completions DefaultApi | create_embedding | POST /embeddings | Create Embeddings DefaultApi | create_fim_completion | POST /fim/completions | Create FIM Completions DefaultApi | files_api_routes_delete_file | DELETE /files/{file_id} | Delete File DefaultApi | files_api_routes_list_files | GET /files | List Files DefaultApi | files_api_routes_retrieve_file | GET /files/{file_id} | Retrieve File DefaultApi | files_api_routes_upload_file | POST /files | Upload File DefaultApi | jobs_api_routes_fine_tuning_cancel_fine_tuning_job | POST /fine_tuning/jobs/{job_id}/cancel | Cancel Fine Tuning Job DefaultApi | jobs_api_routes_fine_tuning_create_fine_tuning_job | POST /fine_tuning/jobs | Create Fine Tuning Job DefaultApi | jobs_api_routes_fine_tuning_get_fine_tuning_job | GET /fine_tuning/jobs/{job_id} | Get Fine Tuning Job DefaultApi | jobs_api_routes_fine_tuning_get_fine_tuning_jobs | GET /fine_tuning/jobs | List Fine Tuning Jobs DefaultApi | list_models | GET /models | List Available Models
To get access to the crate's generated documentation, use:
cargo doc --open