I get a similar error:
400 Invalid 'messages[10].tool_calls': empty array. Expected an array with minimum length 1, but got an empty array instead.
It always occurs on a follow up chat. First message goes through no problem.
Tried OpenAi 40 and 4.1
Happens on Wappler 7.01 and 7.1.0
Another issue I have is if you have a very long prompt if fulls the entire vertical height of the AI window so it's impossible to see the response.