Inference API error with Whisper, return_timestamps parameter

Right now the problem was finally solved - it is working correctly on the HF website and with API request.

However another change appears in API: no more Auto-detection of audio format, content-type needs to be explitely stated. Briefly in my case: previously I could pass the “application/octet-stream” type (raw bytes) and HF would auto detect it as OGG. But now it causes error “Content type “None” not supported.” . So the solution is to explitely state that it is “audio/ogg” content-type.

I believe in raw API request it was always the case, but I used huggingface.js Inference Client which did not require explicit content-type before.

1 Like