I'm trying to use the OpenAI Whisper API in Retool without success.
I tested first on Postman and it works as espected.
The endpoint requires the
multipart/form-data Content-Type and a couple of
form parameters, the
model and the
Here the Postman screenshot:
Here the equivalent Retool attempt:
In Retool, OpenAI returns an parsing error.
I tried to pass as
file value the
fileInput.value as well as the
fileInput.value.base64Data with no success.
Found out the solution.
The issues was the
Content-Type header put explicitly by me (since it was required by OpenAI spec).
Retool adds it also when there's a
File in the body.
Probably a conflict. By removing it, make it work perfectly.
Learned from this thread:
You'll likely also need to remove the Content-Type header from the request. Retool will automatically add a content-type header and set it to multipart/form-data along with the boundary:
I'm interested to know what error you're getting as well, that may help with further debugging!