External Publication
Visit Post

Structured output: JSON output is sometimes concatenated with itself (+ \n)

OpenAI Developer Community May 23, 2026
Source

To be noted : the number of “completion_tokens”, as returned by the API, corresponds to the full strings (with the content duplicated); so we’re actually paying twice for the output tokens…

Discussion in the ATmosphere

Loading comments...