From c60783d61e7edc0f2ef272765be56004ff361e65 Mon Sep 17 00:00:00 2001 From: CaptainB Date: Sun, 9 Feb 2025 11:58:26 +0800 Subject: [PATCH] fix: Fix Simple Application preview show 404 error page MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1052069 --user=刘瑞斌 【简易应用】- 调试预览中提问报404 https://www.tapd.cn/57709429/s/1651941 --- apps/application/flow/tools.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/application/flow/tools.py b/apps/application/flow/tools.py index 2d4ebbcfd..69495ffc3 100644 --- a/apps/application/flow/tools.py +++ b/apps/application/flow/tools.py @@ -18,6 +18,10 @@ from common.response import result class Reasoning: def __init__(self, reasoning_content_start, reasoning_content_end): + if not reasoning_content_start: + reasoning_content_start = "" + if not reasoning_content_end: + reasoning_content_end = "" self.content = "" self.reasoning_content = "" self.all_content = ""