I think one solution would be to iterate through these completions, create a variables length(completion) and then put this into an array using the array aggregator. Then you sort this array by this length variable and only use the first item.
Modules would be
ChatGPT
iterator
set variable
4 array aggregator
→ whatever you want to do with the response