mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 04:15:25 +00:00
refac: audio
This commit is contained in:
parent
daabc188e8
commit
bde89fd29e
1 changed files with 3 additions and 3 deletions
|
|
@ -330,7 +330,7 @@ async def speech(request: Request, user=Depends(get_verified_user)):
|
||||||
detail = f"External: {e}"
|
detail = f"External: {e}"
|
||||||
|
|
||||||
raise HTTPException(
|
raise HTTPException(
|
||||||
status_code=getattr(r, "status", 500),
|
status_code=getattr(r, "status", 500) if r else 500,
|
||||||
detail=detail if detail else "Open WebUI: Server Connection Error",
|
detail=detail if detail else "Open WebUI: Server Connection Error",
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
@ -384,7 +384,7 @@ async def speech(request: Request, user=Depends(get_verified_user)):
|
||||||
detail = f"External: {e}"
|
detail = f"External: {e}"
|
||||||
|
|
||||||
raise HTTPException(
|
raise HTTPException(
|
||||||
status_code=getattr(r, "status", 500),
|
status_code=getattr(r, "status", 500) if r else 500,
|
||||||
detail=detail if detail else "Open WebUI: Server Connection Error",
|
detail=detail if detail else "Open WebUI: Server Connection Error",
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
@ -440,7 +440,7 @@ async def speech(request: Request, user=Depends(get_verified_user)):
|
||||||
detail = f"External: {e}"
|
detail = f"External: {e}"
|
||||||
|
|
||||||
raise HTTPException(
|
raise HTTPException(
|
||||||
status_code=getattr(r, "status", 500),
|
status_code=getattr(r, "status", 500) if r else 500,
|
||||||
detail=detail if detail else "Open WebUI: Server Connection Error",
|
detail=detail if detail else "Open WebUI: Server Connection Error",
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue