Parst of HTML tag being broken apart

I really do not know how to describe it better than the subject.

I have used both streaming and standard but still have the exact issue. My code is very close to this thread: Issues with Streaming HTML Content in JavaScript: Leading Parts of Tags Getting Removed

Here is example data returned:

eated ":1722120967,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_ba606877f9","choices":[{"index ":0,"delta":{"content":">\n\n"},"logprobs":null,"finish_reason":null}]}

data: {"id":"chatcmpl-9pkcZ7zlBp0QzHQz0kPxSyC2aPV3t","object":"chat.completion.chunk","created":1722120967,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_ba606877f9","choices":[{"index":0,"delta":{"content":"<p"}," logprobs ":null," finish_reason ":null}]}

aPV3t"," object":" chat.completion.chunk"," created ":1722120967," model":" gpt-4o-mini-2024-07-18"," system_fingerprint":" fp_ba606877f9"," choices":[{" index ":0," delta":{" content":">"},"logprobs":null,"finish_reason":null}]}

data: {"id":"chatcmpl-9pkcZ7zlBp0QzHQz0kPxSyC2aPV3t","object":"chat.completion.chunk","created":1722120967,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_ba606877f9","choices":[{"index":0,"delta":{"content":"While"},"logprobs":null,"finish_reason":null}]}

The issue seems be the incomplete tag {"content":"<p"}

Then closing tag is separate content":">"}

So content is retuned to my message area like:

>While the prospect of ....</p>

Prompt I use to attempt to use HTML over markdown:

Please return complete HTML tags. For example, for the text "While exploring new opportunities," return: <p>While exploring new opportunities.</p>. please write article about dangers of using unknown platforms to sell digital downloads.

Welcome back.

Are you using the most recent library for OpenAI? Or custom streaming code?