From af93901ea8d7f90fd1781dac5b1d70a1e3b2f2bb Mon Sep 17 00:00:00 2001 From: Wizerd Date: Thu, 28 Dec 2023 19:53:41 +0800 Subject: [PATCH] =?UTF-8?q?[feat]=20=E5=A2=9E=E5=8A=A0=E7=89=B9=E6=AE=8A?= =?UTF-8?q?=E6=83=85=E5=86=B5=E4=B8=8B=E7=9A=84=E9=94=99=E8=AF=AF=E6=97=A5?= =?UTF-8?q?=E5=BF=97=E8=BE=93=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 693e7fd..21a98c7 100644 --- a/main.py +++ b/main.py @@ -173,9 +173,9 @@ CORS(app, resources={r"/images/*": {"origins": "*"}}) PANDORA_UPLOAD_URL = 'files.pandoranext.com' -VERSION = '0.3.5' +VERSION = '0.3.6' # VERSION = 'test' -UPDATE_INFO = '优化gpt-4-vision的token统计' +UPDATE_INFO = '增加特殊情况下的错误日志输出' # UPDATE_INFO = '【仅供临时测试使用】 ' with app.app_context(): @@ -1071,6 +1071,8 @@ def data_fetcher(upstream_response, data_queue, stop_event, last_data_time, api_ try: buffer_json = json.loads(buffer) error_message = buffer_json.get("detail", {}).get("message", "未知错误") + if error_message == "未知错误": + logger.error(f"未识别到具体的错误消息,响应内容: {buffer_json}") error_data = { "id": chat_message_id, "object": "chat.completion.chunk",