Microsoft Azure · Schema

chatCompletionRequestMessageFunction

API ManagementCloudCloud ComputingEnterpriseInfrastructure as a ServicePlatform as a ServiceT1
View JSON Schema on GitHub

JSON Schema

microsoft-azure-chatcompletionrequestmessagefunction-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/chatCompletionRequestMessageFunction",
  "title": "chatCompletionRequestMessageFunction",
  "allOf": [
    {
      "$ref": "#/components/schemas/chatCompletionRequestMessage"
    },
    {
      "type": "object",
      "description": "Deprecated. Message that represents a function.",
      "nullable": true,
      "properties": {
        "role": {
          "type": "string",
          "enum": [
            "function"
          ],
          "description": "The role of the messages author, in this case `function`."
        },
        "name": {
          "type": "string",
          "description": "The contents of the message."
        },
        "content": {
          "type": "string",
          "description": "The contents of the message.",
          "nullable": true
        }
      }
    }
  ],
  "required": [
    "function_call_id",
    "content"
  ]
}