From ce738145833126c3ff231e513186ceeadc43fb54 Mon Sep 17 00:00:00 2001 From: "CJACK." Date: Fri, 6 Feb 2026 03:01:09 +0800 Subject: [PATCH] Fix indentation in openai non-stream parser --- routes/openai.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/routes/openai.py b/routes/openai.py index 34301db..5ba60f2 100644 --- a/routes/openai.py +++ b/routes/openai.py @@ -523,11 +523,11 @@ IMPORTANT: If calling tools, output ONLY the JSON. The response must start with think_list.append(content_text) else: text_list.append(content_text) - except Exception as e: - logger.warning(f"[collect_data] 无法解析: {chunk}, 错误: {e}") - text_list.append("解析失败,请稍候再试") - data_queue.put(None) - break + except Exception as e: + logger.warning(f"[collect_data] 无法解析: {chunk}, 错误: {e}") + text_list.append("解析失败,请稍候再试") + data_queue.put(None) + break except Exception as e: logger.warning(f"[collect_data] 错误: {e}") text_list.append("处理失败,请稍候再试")