-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] Audio task accept headers are not respected #351
Comments
Hey @StephenHodgson, remind me the discussion and work done in #287, right? |
Sure 😊 we added support to specify a specific mime return type requested by the client for both image and audio tasks.
I'm confused because that is the white listed types, and both are in the list. I thought we had added some tests, and I assumed some tasks would lag behind the release of the api-inference-cimmunity releases. But months later testing this out with multiple different models still I'm unable to get the requested mime types back for audio tasks. |
Is your feature request related to a problem? Please describe.
When settings
accept
headers toaudio/wav
oraudio/mp3
when making requests to audio inference tasks using api-inference-community 0.0.32+, the returned audio file is still encoded as flac.Describe the solution you'd like
accept
headers respect the types that the client can understand.Additional context
This is to unblock support for audio tasks in Unity game engine for upcoming hackathon.
I've tried the following tasks | models:
I suspect that the accept headers for images likely also suffer from the same issue, but have not tested.
The text was updated successfully, but these errors were encountered: