Ridiculous Number of Redundant Tool Calls

Ok, so what I am getting out of this is that you send the prompt 73 times and you don’t know why?

If there is no or not much other code calling this it might be a bug, or you have code somewhere that is retrying a bunch of times and it does it too much. It might be a built in function not working properly.

Have you tried running your script in a different environment with different versions of python?

You have no issues ever with your internet connection?