Microsoft Azure · Schema

chatCompletionRequestMessageRole

The role of the messages author.

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

JSON Schema

microsoft-azure-chatcompletionrequestmessagerole-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/chatCompletionRequestMessageRole",
  "title": "chatCompletionRequestMessageRole",
  "type": "string",
  "enum": [
    "system",
    "user",
    "assistant",
    "tool",
    "function"
  ],
  "description": "The role of the messages author.",
  "x-ms-enum": {
    "name": "ChatCompletionRequestMessageRole",
    "modelAsString": true,
    "values": [
      {
        "value": "system",
        "description": "The message author role is system."
      },
      {
        "value": "user",
        "description": "The message author role is user."
      },
      {
        "value": "assistant",
        "description": "The message author role is assistant."
      },
      {
        "value": "tool",
        "description": "The message author role is tool."
      },
      {
        "value": "function",
        "description": "Deprecated. The message author role is function."
      }
    ]
  }
}