From 87679db24aaa35883bc0510b20247f8beabb3866 Mon Sep 17 00:00:00 2001 From: Qiwei Huang Date: Sun, 11 Aug 2024 01:52:05 +0800 Subject: [PATCH] fix bug for the audio and speech --- app.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app.py b/app.py index 5f7cb2d..1fee898 100644 --- a/app.py +++ b/app.py @@ -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: