Azure Open AI Completion API: Need clarity on API response

Vipin Sharma 116 Reputation points
2023-03-06T09:55:56.87+00:00

"I am following the documentation provided at https://video2.skills-academy.com/en-us/azure/cognitive-services/openai/reference#completions. When making an API call, the response includes a 'choices' tag containing a 'text' tag with the following string:

'\n\nThis response example has the following sentences:\n\n1. This is the first sentence\n2. This is the second sentence\n3. This is the third sentence\n4. This is the fourth sentence\n5. This is the fifth sentence'.

While it seems that 'n1', 'n2', etc. represent bullet points, I'm unsure what else to expect in the output. I need this information to properly format the text for display to the user on the front-end."

Azure OpenAI Service
Azure OpenAI Service
An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
2,942 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.