Microsoft Azure · Schema

createChatCompletionResponse

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

JSON Schema

microsoft-azure-createchatcompletionresponse-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/createChatCompletionResponse",
  "title": "createChatCompletionResponse",
  "type": "object",
  "allOf": [
    {
      "$ref": "#/components/schemas/chatCompletionsResponseCommon"
    },
    {
      "properties": {
        "prompt_filter_results": {
          "$ref": "#/components/schemas/promptFilterResults"
        },
        "choices": {
          "type": "array",
          "items": {
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/chatCompletionChoiceCommon"
              },
              {
                "properties": {
                  "message": {
                    "$ref": "#/components/schemas/chatCompletionResponseMessage"
                  },
                  "content_filter_results": {
                    "$ref": "#/components/schemas/contentFilterChoiceResults"
                  },
                  "logprobs": {
                    "$ref": "#/components/schemas/chatCompletionChoiceLogProbs"
                  },
                  "enhancements": {
                    "$ref": "#/components/schemas/enhancement",
                    "description": "The enhancement results returned by the service."
                  }
                }
              }
            ]
          }
        }
      }
    }
  ],
  "required": [
    "id",
    "object",
    "created",
    "model",
    "choices"
  ]
}