mistral-openapi-client 0.1.0

Our Chat Completion and Embeddings APIs specification. Create your account on [La Plateforme](https://console.mistral.ai) to get access and read the [docs](https://docs.mistral.ai) to learn how to use it.
Documentation
# ChatCompletionRequest

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**model** | **String** | ID of the model to use. You can use the [List Available Models]/api/#tag/models/operation/list_models_v1_models_get API to see all of your available models, or see our [Model overview]/models for model descriptions. | 
**temperature** | Option<**f64**> |  | [optional]
**top_p** | Option<**f64**> | Nucleus sampling, where the model considers the results of the tokens with `top_p` probability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered. We generally recommend altering this or `temperature` but not both. | [optional][default to 1.0]
**max_tokens** | Option<**i32**> |  | [optional]
**stream** | Option<**bool**> | Whether to stream back partial progress. If set, tokens will be sent as data-only server-side events as they become available, with the stream terminated by a data: [DONE] message. Otherwise, the server will hold the request open until the timeout or until completion, with the response containing the full result as JSON. | [optional][default to false]
**stop** | Option<[**models::Stop**]Stop.md> |  | [optional]
**random_seed** | Option<**i32**> |  | [optional]
**metadata** | Option<**std::collections::HashMap<String, serde_json::Value>**> |  | [optional]
**messages** | [**Vec<models::MessagesInner>**]MessagesInner.md | The prompt(s) to generate completions for, encoded as a list of dict with role and content. | 
**response_format** | Option<[**models::ResponseFormat**]ResponseFormat.md> |  | [optional]
**tools** | Option<[**Vec<models::Tool>**]Tool.md> |  | [optional]
**tool_choice** | Option<[**models::ToolChoice**]ToolChoice.md> |  | [optional]
**presence_penalty** | Option<**f64**> | The `presence_penalty` determines how much the model penalizes the repetition of words or phrases. A higher presence penalty encourages the model to use a wider variety of words and phrases, making the output more diverse and creative. | [optional][default to 0.0]
**frequency_penalty** | Option<**f64**> | The `frequency_penalty` penalizes the repetition of words based on their frequency in the generated text. A higher frequency penalty discourages the model from repeating words that have already appeared frequently in the output, promoting diversity and reducing repetition. | [optional][default to 0.0]
**n** | Option<**i32**> |  | [optional]
**prediction** | Option<[**models::Prediction**]Prediction.md> | Enable users to specify expected results, optimizing response times by leveraging known or predictable content. This approach is especially effective for updating text documents or code files with minimal changes, reducing latency while maintaining high-quality results. | [optional][default to {type=content, content=}]
**parallel_tool_calls** | Option<**bool**> | Whether to enable parallel function calling during tool use, when enabled the model can call multiple tools in parallel. | [optional][default to true]
**prompt_mode** | Option<[**models::MistralPromptMode**]MistralPromptMode.md> |  | [optional]
**guardrails** | Option<[**Vec<models::GuardrailConfig>**]GuardrailConfig.md> |  | [optional]
**safe_prompt** | Option<**bool**> | Whether to inject a safety prompt before all conversations. | [optional][default to false]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)