Skip to content

Commit

Permalink
0.12.3 - additional logging details for 400's
Browse files Browse the repository at this point in the history
  • Loading branch information
matatonic committed Jun 17, 2024
1 parent b4c442b commit 18c73ce
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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?)
Expand Down
4 changes: 3 additions & 1 deletion openedai.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,9 @@ def openai_apierror_handler(request: Request, exc: APIError) -> JSONResponse:

@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)

Expand Down

0 comments on commit 18c73ce

Please sign in to comment.