Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix ERR_FR_MAX_BODY_LENGTH_EXCEEDED issue by setting default maxBodyL…
…ength This PR addresses the issue [#167](#167), where a `ERR_FR_MAX_BODY_LENGTH_EXCEEDED` error is thrown when the `createTranscription` function is used with an audio file larger than 10 MB but smaller than 25 MB. This is because the library uses `axios` which defaults to a 10 MB body limit. The issue is resolved by setting a default `maxBodyLength` of 25 MB if it is not already set. This ensures that the limit aligns with OpenAI's maximum file size limit.
- Loading branch information