How to make Chatgpt API resume the dialog?

I’m trying to make a resume writer project. I prompted the model to give a response always in JSON format. It generated the content but the content stopped, I think the model hit its limits and I got an incomplete JSON response basically like this [{“answer”: "apple is a vege (not exactly this short, but you understand this).

I inspected that Poe handles this issue successfully but I don’t know how I can handle this in my code. Can anyone tell me how to handle this correctly?

Could you share more details about the specific API request that caused this including your prompt and values for other parameters such as max tokens, stop sequence (if applicable)?

Hi!
You can adjust the ‘max_tokens’ parameter to get longer responses from the model.

https://platform.openai.com/docs/api-reference/chat/create#chat-create-max_tokens