I’m building AI chatbots and having a hard time converting the LLM response into a message that I can send.
The LLM API response is inside an array with each word is a separate item. From what I understand this allows streaming but my setup just sends the completed message all at once.
What’s the best way to convert this into a simple block of text I can send as a message?
I don’t know if I should text parse the array and remove commas. I’ve tried an iterator module followed by an array aggregator but tbh I just get repeats of the same message with all the commas. Any help is hugely appreciated!!
Sample output
“output”: [
“Hey”,
" there",
“.”
“”
]