0.12.3 - additional logging details for 400's

This commit is contained in:
matatonic 2024-06-17 12:32:55 -04:00
parent b4c442bb79
commit 18c73ce827
2 changed files with 7 additions and 1 deletions

View File

@ -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
Version 0.12.3, 2024-06-17
* Additional logging details for BadRequests (400)
Version 0.12.2, 2024-06-16
* Fix :min image requirements (numpy<2?)

View File

@ -102,7 +102,9 @@ class OpenAIStub(FastAPI):
@self.exception_handler(APIStatusError)
def openai_statuserror_handler(request: Request, exc: APIStatusError) -> JSONResponse:
# User error
# Client side error
logger.info(repr(exc))
if exc.internal_message:
logger.info(exc.internal_message)