Skip to content

Commit

Permalink
feat: transcribe should respond with 200
Browse files Browse the repository at this point in the history
  • Loading branch information
winstxnhdw committed Aug 18, 2024
1 parent c0bf633 commit 9eeecf0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/api/v1/transcribe.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from litestar.enums import RequestEncodingType
from litestar.exceptions import HTTPException
from litestar.params import Body
from litestar.status_codes import HTTP_400_BAD_REQUEST
from litestar.status_codes import HTTP_200_OK, HTTP_400_BAD_REQUEST

from server.features import Transcriber
from server.schemas.v1 import Transcribed
Expand All @@ -21,7 +21,7 @@ class TranscriberController(Controller):

path = '/transcribe'

@post()
@post(status_code=HTTP_200_OK)
async def transcribe(
self,
data: Annotated[UploadFile, Body(media_type=RequestEncodingType.MULTI_PART)],
Expand Down

0 comments on commit 9eeecf0

Please sign in to comment.