{
  "openapi": "3.0.0",
  "info": {
    "title": "mprove backend",
    "description": "",
    "version": "12.0.27",
    "contact": {}
  },
  "paths": {
    "/api/ToBackendGetLlmModelParts": {
      "post": {
        "operationId": "GetLlmModelPartsController",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToBackendGetLlmModelPartsRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToBackendGetLlmModelPartsResponse"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "ToBackendGetLlmModelPartsRequest": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendGetLlmModelPartsRequestInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendGetLlmModelPartsRequestPayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendGetLlmModelPartsResponse": {
        "type": "object",
        "properties": {
          "info": {
            "$ref": "#/components/schemas/ToBackendGetLlmModelPartsResponseInfo"
          },
          "payload": {
            "$ref": "#/components/schemas/ToBackendGetLlmModelPartsResponsePayload"
          }
        },
        "required": [
          "info",
          "payload"
        ]
      },
      "ToBackendGetLlmModelPartsRequestInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "api/ToBackendGetLlmModelParts"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "traceId",
          "idempotencyKey"
        ]
      },
      "ToBackendGetLlmModelPartsRequestPayload": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          },
          "providerId": {
            "type": "string",
            "minLength": 1
          }
        },
        "required": [
          "projectId",
          "providerId"
        ],
        "additionalProperties": false
      },
      "ToBackendGetLlmModelPartsResponseInfo": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": [
              "/api/ToBackendGetLlmModelParts"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST"
            ]
          },
          "mproveVersion": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "Ok",
              "Error"
            ]
          },
          "traceId": {
            "type": "string"
          },
          "error": {
            "nullable": true
          }
        },
        "required": [
          "path",
          "method",
          "status",
          "traceId"
        ]
      },
      "ToBackendGetLlmModelPartsResponsePayload": {
        "type": "object",
        "properties": {
          "modelParts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LlmModelPart"
            }
          },
          "errorMessage": {
            "type": "string",
            "nullable": true
          }
        },
        "required": [
          "modelParts"
        ],
        "additionalProperties": false
      },
      "LlmModelPart": {
        "type": "object",
        "properties": {
          "modelId": {
            "type": "string",
            "minLength": 1
          },
          "catalogName": {
            "type": "string",
            "minLength": 1
          },
          "providerModelInfo": {
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {},
            "nullable": true
          },
          "modelsDevStatus": {
            "type": "string",
            "enum": [
              "alpha",
              "beta",
              "deprecated"
            ],
            "nullable": true
          },
          "contextLimit": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991,
            "nullable": true
          },
          "inputLimit": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991,
            "nullable": true
          },
          "outputLimit": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991,
            "nullable": true
          },
          "codexContextWindow": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991,
            "nullable": true
          },
          "codexMaxContextWindow": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991,
            "nullable": true
          },
          "variants": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "isOpencodeSupported": {
            "type": "boolean"
          }
        },
        "required": [
          "modelId",
          "catalogName",
          "isOpencodeSupported"
        ],
        "additionalProperties": false
      }
    }
  }
}
