Structured Outputs Infinite \n Newline Characters

We are using structured outputs in production with GPT-4o-2024-08-06 and seem to be encountering an issue where often one of the objects within the structured output will just return an infinite number of \n newline characters until the max token limit is hit.

Found that this seemed to be an issue in the JSON_Mode, wondering if anyone else was having the same issue and had found a solution?

Thanks!

6 Likes