mirror of
https://github.com/open-webui/open-webui
synced 2024-11-17 22:12:51 +00:00
fix: openai issue
This commit is contained in:
parent
f90236f521
commit
1e03871748
@ -144,7 +144,9 @@ async def speech(request: Request, user=Depends(get_verified_user)):
|
|||||||
except:
|
except:
|
||||||
error_detail = f"External: {e}"
|
error_detail = f"External: {e}"
|
||||||
|
|
||||||
raise HTTPException(status_code=r.status_code, detail=error_detail)
|
raise HTTPException(
|
||||||
|
status_code=r.status_code if r else 500, detail=error_detail
|
||||||
|
)
|
||||||
|
|
||||||
except ValueError:
|
except ValueError:
|
||||||
raise HTTPException(status_code=401, detail=ERROR_MESSAGES.OPENAI_NOT_FOUND)
|
raise HTTPException(status_code=401, detail=ERROR_MESSAGES.OPENAI_NOT_FOUND)
|
||||||
@ -328,4 +330,6 @@ async def proxy(path: str, request: Request, user=Depends(get_verified_user)):
|
|||||||
except:
|
except:
|
||||||
error_detail = f"External: {e}"
|
error_detail = f"External: {e}"
|
||||||
|
|
||||||
raise HTTPException(status_code=r.status_code, detail=error_detail)
|
raise HTTPException(
|
||||||
|
status_code=r.status_code if r else 500, detail=error_detail
|
||||||
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user