mistral-rouille

Crates.iomistral-rouille
lib.rsmistral-rouille
version1.1.4
sourcesrc
created_at2024-06-16 05:42:19.021771
updated_at2024-06-16 05:42:19.021771
descriptionMistral 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
repositoryhttps://github.com/GovCraft/mistral-rouille
max_upload_size
id1273281
size257,336
Roland Rodriguez (rrrodzilla)

documentation

README

Mistral Rouille

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.

Overview

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.

  • API version: 0.0.2
  • Crate version: 1.1.4
  • Build date: 2024-06-15T23:41:00.377209-06:00[America/Mexico_City]
  • Generator version: 7.6.0
  • Build package: org.openapitools.codegen.languages.RustClientCodegen

Either run:

cargo add mistral-rouille

or add to Cargo.toml

mistral-rouille = "1.1.4"

Examples

View the tests folder for a basic example executing a chat request on Mistral's newest model Codestral.

Documentation for API Endpoints

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

Documentation For Models

To get access to the crate's generated documentation, use:

cargo doc --open

Author

roland@govcraft.ai

Commit count: 85

cargo fmt