I was mixed about putting it in the base package but you can get the same behavior with the tenacity package.
I just wasted a couple hours the other week due to langchainjs defaulting to retrying errors which were ultimately caused by timeouts and would never complete.