See https://github.com/replicate/replicate-javascript/pull/44#issuecomment-1503932008
See #44 (comment)