Response messages from OpenAI API without content

Roman Stefanov 5 Reputation points
2023-08-13T09:59:06.32+00:00

Sometimes getting message from API without content, like below. Never had problems like this with original openai API.
{"id":"chatcmpl-7n20Z6UmlcR2rCdODY0TX3fEASA8T","object":"chat.completion","created":1691920147,"model":"gpt-35-turbo","choices":[{"index":0,"finish_reason":"stop","message":{"role":"assistant"}}],"usage":{"prompt_tokens":1075,"total_tokens":1075}}

normally it goes
"message":{"role":"assistant","content":"response content."}}

Azure OpenAI Service
Azure OpenAI Service
An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
4,080 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.