#Raw HTML being streamed via API

10 messages · Page 1 of 1 (latest)

craggy spire
#

Starting a couple of days ago, I have seen instances where raw HTML has been streamed into via the HTML before any formatting has been applied, namely <p dir="auto">.

#

Raw HTML being streamed via API

#

For context, the query was: "Give me a wall of text"

#

It's intermittent, but I notice maybe once every 20min or so

wanton fjord
lofty comet
#

@craggy spire is this still a consistent issue?

craggy spire
#

@lofty comet yes, consistent and highly common issue. I can cause it at will. I just qury Show me some markdown and it happens on the first or second try

wanton fjord
#

sorry but im still a little new to the term markdown compared to flash program ... also are you talking about this ,, i found that only one picture and 1 video/animation attempt set shows on another ai program, however its close to showing an intimated video or custom slidshow using its own ideas or your ideas ,, inside a console every time or web player.

craggy spire
#

I believe I've now solved this.

siren Also, I DO think this is a bug with ChatGPT siren

The issue was that every time I received markdown from the ChatGPT API, I parsed it to HTML.

The issue was then that—as far as I can tell—when I passed the array back to ChatGPT, it saw the previous "assistant" messages formatted as HTML and attempted to respond in HTML as well.

My solution thus far is to maintain two arrays, one with raw responses, and one with the formatted responses. The raw responses get passed to ChatGPT API, and the formatted responses get displayed to end users.