Links in streamed responses

I am receiving a streamed response by OpenAi, which works wonderfully (Answer is generated in PHP, then appended in html with javascript).

The big issue I have is, if the response contains a link using the format , where the text is between the brackets and the link between the parenthesis, the answer comes back bits by bits with the “pre-formatted” answer and is shown to the user, until the link is complete and is correctly shown.

Is there anyway to receive links “all” at once instead of bits by bits for the streamed response ? Currently, I can have scenarii where the chunks are “[”,“Google]”,“(http”, etc. which is hard to detect as the format can be random.