Why GPT 4o-mini and GPT4-preview models returning invalid html response when user asked response in html format?

Chalapathi Addanki 0 Reputation points
2025-01-10T07:44:49.9566667+00:00

Hi,

We are using GPT 4o-mini and GPT4-preview models and these models returning the invalid html response when user is asked response in html format.

Prompt: "what should I look out for in a mobile phone contract? Response should be in html format."

Response : Please see below.

User's image

The returned response has some invalid html characters at the start and additional info at the end.

Note: GPT4 and GPT3.5 models are returning correct html format when user asked the response in html format.

Please suggest if any solution.

Thanks,

Chalapathi

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