Skip to content

Commit

Permalink
fix bug for the audio and speech
Browse files Browse the repository at this point in the history
  • Loading branch information
hhhizzz committed Aug 10, 2024
1 parent 452e41f commit 87679db
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ def handler(path):
data = json.loads(body_str)
except json.JSONDecodeError:
return 'Bad Request', 400
except Exception as e:
# do nothing for the binary input such as audio
pass

if path == "v1/chat/completions":
if 'media' in data:
Expand Down

0 comments on commit 87679db

Please sign in to comment.