Microsoft Azure · Example Payload

Microsoft Azure Microsoftazurecompletionscreate Example

API ManagementCloudCloud ComputingEnterpriseInfrastructure as a ServicePlatform as a ServiceT1

Microsoft Azure Microsoftazurecompletionscreate Example is an example object payload from Microsoft Azure, with 6 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

operationIdmethodpathsummaryrequestExamplesresponseExamples

Example Payload

Raw ↑
{
  "operationId": "microsoftAzureCompletionsCreate",
  "method": "POST",
  "path": "/deployments/{deployment-id}/completions",
  "summary": "Microsoft Azure Creates A Completion For The Provided Prompt, Parameters And Chosen Model",
  "requestExamples": [
    {
      "contentType": "application/json",
      "example": {
        "prompt": "Negate the following sentence.The price for bubblegum increased on thursday.\n\n Negated Sentence:",
        "max_tokens": 50
      }
    }
  ],
  "responseExamples": [
    {
      "status": "200",
      "contentType": "application/json",
      "example": {
        "model": "davinci",
        "object": "text_completion",
        "id": "cmpl-4509KAos68kxOqpE2uYGw81j6m7uo",
        "created": 1637097562,
        "choices": [
          {
            "index": 0,
            "text": "The price for bubblegum decreased on thursday.",
            "logprobs": null,
            "finish_reason": "stop"
          }
        ]
      }
    }
  ]
}