OPENAPI / COMPONENTS / SCHEMAS

Chat Completion Request 数据结构

ChatCompletionRequest

Mistral AI API 合约中的 Chat Completion Request 结构定义。

object23字段
frequency_penaltystring

Mistral AI API 合约中的 frequency penalty 值。

guardrailsstring

Mistral AI API 合约中的 guardrails 值。

max_tokensstring

Mistral AI API 合约中的 max tokens 值。

messagesarray必填

Mistral AI API 合约中的 messages 值。

metadatastring

Mistral AI API 合约中的 metadata 值。

modelstring必填

Mistral AI API 合约中的 model 值。

nstring

Mistral AI API 合约中的 n 值。

parallel_tool_callsboolean

Mistral AI API 合约中的 parallel tool calls 值。

predictionPrediction

Mistral AI API 合约中的 prediction 值。

presence_penaltystring

Mistral AI API 合约中的 presence penalty 值。

prompt_cache_keystring

Mistral AI API 合约中的 prompt cache key 值。

prompt_modestring

Mistral AI API 合约中的 prompt mode 值。

random_seedstring

Mistral AI API 合约中的 random seed 值。

reasoning_effortstring

Mistral AI API 合约中的 reasoning effort 值。

response_formatResponseFormat

Mistral AI API 合约中的 response format 值。

safe_promptboolean

Mistral AI API 合约中的 safe prompt 值。

service_tierstring

Mistral AI API 合约中的 service tier 值。

stopstring

Mistral AI API 合约中的 stop 值。

streamboolean

Mistral AI API 合约中的 stream 值。

temperaturestring

Mistral AI API 合约中的 temperature 值。

tool_choicestring

Mistral AI API 合约中的 tool choice 值。

toolsstring

Mistral AI API 合约中的 tools 值。

top_pstring

Mistral AI API 合约中的 top p 值。