Variable interpolation failure in error response

Open Beginner friendly
#38 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
1-3 hours
Newbie friendliness
85/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Quiet
Tech stack
python
Domain
api, backend

Research direction

Start in vox_box/server/routers.py at line 144 and inspect how the /v1/audio/transcriptions endpoint builds its error response for an invalid response_format. Reproduce the request with an unsupported value, correct the message interpolation, and verify that the response includes the supplied value instead of the literal placeholder.

Written by the indexing model from the issue text.

Description

Summary

In the /v1/audio/transcriptions endpoint, the error response is not properly formatted when an invalid response_format is included.

Relevant location

https://github.com/gpustack/vox-box/blob/c5d4c154177acbae752ccf8bc4d7cd409c140ddc/vox_box/server/routers.py#L144

Actual response
{'status_code': 400, 'detail': 'Unsupported response_format: {response_format}', 'headers': None}
Dominant language
Python
Stars
217
Forks
36
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from gpustack/vox-box

All issues in gpustack/vox-box

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.