#4.1 Structured Output Non-minified JSON Bug

1 messages · Page 1 of 1 (latest)

waxen anchorBOT
#

Reported by @pseudo yacht

Bug Report: 4.1 Structured Output Non-minified JSON Bug
`Steps to Reproduce`

Ask 4.1 to generate any structured output such as a knowledge graph from a given input. I even explicitly state "Return a single JSON object with absolutely no whitespace, tabs, or newline characters. DO NOT DO "\t" anywhere". This bug is somewhat inconsistent and may take a couple tries, happens about 50% of the time for me with the explicit system prompt. Even more without.

`Expected Result`

Knowledge Graph output. I'd expect to get back a minified KG JSON object containing the nodes and relationships of the input. It should follow system prompt saying there should be no whitespace or tab characters.

`Actual Result`

Returning a JSON object as expected but randomly wedges in a ton of \t characters as if its writing pretty printed JSON. One output from testing gave me >100 \t characters. This issue does not appear when using 4o - in my experience.

`Environment`

4.1 via Completions API, also tested with Batch API and Playground.

#
Additional Information

Please provide relevant details to help resolve the issue, such as:

  • ChatGPT Shared Link (if applicable).
  • Screenshots or videos demonstrating the problem.

-# ➜ Need to contact support? Visit the OpenAI Help Center.