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

ChatCompletionRequestFunctionCall(Function calling)

{
    "model": "mistral-small-latest",
    "messages": [
        {
            "role": "user",
            "content": "What is the weather like in Paris?"
        }
    ],
    "temperature": 0.7,
    "top_p": 1,
    "max_tokens": null,
    "stream": false,
    "safe_prompt": false,
    "tools": [
        {
            "type": "function",
            "function": {
                "description": "Get the current weather in a given location.",
                "name": "get_weather",
                "parameters": {
                    "type": "object",
                    "properties": {
                        "location": {
                            "type": "string",
                            "description": "The city and department, e.g. Marseille, 13"
                        },
                        "unit": {
                            "type": "string",
                            "enum": [
                                "celsius",
                                "fahrenheit"
                            ]
                        }
                    },
                    "required": [
                        "location"
                    ]
                }
            }
        }
    ],
    "tool_choice": "auto",
    "random_seed": null
}
Built with