...
Structured fields can be mistaken for text.
Metadata tokens might be passed directly into the output stream.
Certain XML-like markers that should be removed may slip through.
...
How to Report It
In your browser, open Developer Tools (name may vary depending on your browser), go to the Network tab, and select Response.
Find the specific session ID in the Response and include the trace info in a report — it should look something like:
...
...
How to Prevent It
Update your SDK/client
Make sure you’re using the latest API client or SDK version for the model you’ve upgraded to.
If you’re making raw API calls, ensure your parser extracts only the intended text content.
Filter non-text event types in streaming
Many streaming APIs emit multiple event types (e.g.,
"text"
,"metadata"
).Only render tokens where
type === "text"
.
Avoid dumping raw API objects to the UI
Render only the concatenated text payload.
Drop any fields that aren’t user-facing.
Optional: Add a stop sequence as a guard
You can temporarily add a stop sequence for the leaked tag (e.g.,
</alterations>
).This is a quick fix, but the real solution is to correct the parsing logic.
...