{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/CustomLLMCredential",
  "title": "CustomLLMCredential",
  "type": "object",
  "properties": {
    "provider": {
      "type": "string",
      "enum": [
        "custom-llm"
      ]
    },
    "apiKey": {
      "type": "string",
      "maxLength": 10000,
      "description": "This is not returned in the API."
    },
    "authenticationPlan": {
      "description": "This is the authentication plan. Currently supports OAuth2 RFC 6749. To use Bearer authentication, use apiKey",
      "allOf": [
        {
          "$ref": "#/components/schemas/OAuth2AuthenticationPlan"
        }
      ]
    },
    "id": {
      "type": "string",
      "description": "This is the unique identifier for the credential."
    },
    "orgId": {
      "type": "string",
      "description": "This is the unique identifier for the org that this credential belongs to."
    },
    "createdAt": {
      "format": "date-time",
      "type": "string",
      "description": "This is the ISO 8601 date-time string of when the credential was created."
    },
    "updatedAt": {
      "format": "date-time",
      "type": "string",
      "description": "This is the ISO 8601 date-time string of when the assistant was last updated."
    },
    "authenticationSession": {
      "description": "This is the authentication session for the credential. Available for credentials that have an authentication plan.",
      "allOf": [
        {
          "$ref": "#/components/schemas/Oauth2AuthenticationSession"
        }
      ]
    },
    "name": {
      "type": "string",
      "description": "This is the name of credential. This is just for your reference.",
      "minLength": 1,
      "maxLength": 40
    }
  },
  "required": [
    "provider",
    "apiKey",
    "id",
    "orgId",
    "createdAt",
    "updatedAt"
  ]
}