Rename /api/speak API endpoint to /api/transcribe

This commit is contained in:
Debanjum Singh Solanky
2023-11-26 05:58:07 -08:00
parent 56a1a61c77
commit 06f99ceb3c
4 changed files with 4 additions and 4 deletions

View File

@@ -588,7 +588,7 @@ async def chat_options(
return Response(content=json.dumps(cmd_options), media_type="application/json", status_code=200)
@api.post("/speak")
@api.post("/transcribe")
@requires(["authenticated"])
async def transcribe(request: Request, common: CommonQueryParams, file: UploadFile = File(...)):
user: KhojUser = request.user.object