Replies: 2 comments
|
Hello |
0 replies
|
I would avoid trying to “resume exactly where it stopped” inside a partially generated JSON document. That can work in demos, but it is brittle once truncation happens mid-object or mid-array. The reliable pattern is to chunk the task intentionally:
If you must continue, continue from the last valid JSON boundary, not from an invalid half-written object. Structured output is much more dependable when each response comfortably fits within the output budget. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hello everyone,
I’m working on generating a sizable JSON output, often exceeding the maximum token limit of 4096. I’ve noticed that the generation process stops once the token limit is reached. Despite specifying the response format as
{ type: "json_object" }, the generation is interrupted.Is there a straightforward method to resume generation exactly where it left off?
I appreciate any insights or solutions you can provide.
Thank you in advance!
Feel free to adjust any details as necessary.
All reactions