mirror of
https://github.com/matatonic/openedai-speech
synced 2025-06-26 18:16:32 +00:00
0.12.3 - additional logging details for 400's
This commit is contained in:
parent
b4c442bb79
commit
18c73ce827
@ -26,6 +26,10 @@ If you find a better voice match for `tts-1` or `tts-1-hd`, please let me know s
|
|||||||
|
|
||||||
## Recent Changes
|
## Recent Changes
|
||||||
|
|
||||||
|
Version 0.12.3, 2024-06-17
|
||||||
|
|
||||||
|
* Additional logging details for BadRequests (400)
|
||||||
|
|
||||||
Version 0.12.2, 2024-06-16
|
Version 0.12.2, 2024-06-16
|
||||||
|
|
||||||
* Fix :min image requirements (numpy<2?)
|
* Fix :min image requirements (numpy<2?)
|
||||||
|
|||||||
@ -102,7 +102,9 @@ class OpenAIStub(FastAPI):
|
|||||||
|
|
||||||
@self.exception_handler(APIStatusError)
|
@self.exception_handler(APIStatusError)
|
||||||
def openai_statuserror_handler(request: Request, exc: APIStatusError) -> JSONResponse:
|
def openai_statuserror_handler(request: Request, exc: APIStatusError) -> JSONResponse:
|
||||||
# User error
|
# Client side error
|
||||||
|
logger.info(repr(exc))
|
||||||
|
|
||||||
if exc.internal_message:
|
if exc.internal_message:
|
||||||
logger.info(exc.internal_message)
|
logger.info(exc.internal_message)
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user