Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
hhhizzz committed Sep 4, 2024
2 parents a4efa81 + 87679db commit f450956
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 f450956

Please sign in to comment.