OpenAI text not showing full work

Hey guys! For my website users can upload a problem they need help on and the OpenAI will answer the question step by step but for some reason the text is cut off. Does anyone have an idea why??

Is it happening just in the front end or in the database as well? Did you specify the response length anywhere?