Mistral AI
  1. Schemas
Mistral AI
  • Create Chat Completions
    POST
  • Create FIM Completions
    POST
  • Create Embeddings
    POST
  • List Available Models
    GET
  • Delete Model
    DELETE
  • Upload File
    POST
  • List Files
    GET
  • Retrieve File
    GET
  • Delete File
    DELETE
  • List Fine Tuning Jobs
    GET
  • Create Fine Tuning Job
    POST
  • Get Fine Tuning Job
    GET
  • Cancel Fine Tuning Job
    POST
  • Schemas
    • Schemas
      • Error
      • ErrorResponse
      • ModelList
      • Regular
      • JSON mode
      • Function calling
      • FIMCompletionRequest
      • Regular
      • JSON mode
      • Function calling
      • EmbeddingRequest
      • EmbeddingResponse
      • Model
      • UploadFileOut
      • ListFilesOut
      • RetrieveFileOut
      • DeleteFileOut
      • DeleteModelOut
      • FineTuneableModel
      • JobOut
      • JobsOut
      • TrainingParameters
      • WandbIntegrationOut
      • JobIn
      • WandbIntegration
      • CheckpointOut
      • DetailedJobOut
      • EventOut
      • MetricOut
      • UploadFileResponse
      • FileSchema
      • ListFilesResponse
      • RetrieveFileResponse
      • DeleteFileResponse
      • FIMCompletionResponse
      • JobMetadata
      • HTTPValidationError
      • ValidationError
  1. Schemas

ChatCompletionResponseFunctionCall(Function calling)

{
    "id": "cmpl-e5cc70bb28c444948073e77776eb30ef",
    "object": "chat.completion",
    "created": 1702256327,
    "model": "mistral-large-latest",
    "choices": [
        {
            "index": 0,
            "message": {
                "role": "assistant",
                "content": "",
                "tool_calls": [
                    {
                        "function": {
                            "name": "get_current_weather",
                            "arguments": "{\"location\": \"Paris, 75\"}"
                        }
                    }
                ]
            },
            "finish_reason": "stop"
        }
    ],
    "usage": {
        "prompt_tokens": 118,
        "completion_tokens": 35,
        "total_tokens": 153
    }
}
Built with