From f225ec1975df89fe47b7b233d808d44890bbca52 Mon Sep 17 00:00:00 2001 From: zoe chen Date: Sat, 5 Jul 2025 16:15:01 +0800 Subject: [PATCH] fix gpt only shows reasoning content (#1254) --- .config/ags/services/gpt.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.config/ags/services/gpt.js b/.config/ags/services/gpt.js index 9279af0b1..737227a26 100644 --- a/.config/ags/services/gpt.js +++ b/.config/ags/services/gpt.js @@ -280,7 +280,7 @@ class GPTService extends Service { } } else { - if (aiResponse.hasReasoningContent) { + if (aiResponse.hasReasoningContent && !aiResponse.parsedReasoningContent) { aiResponse.parsedReasoningContent = true; aiResponse.addDelta(`\n\n`); } @@ -334,4 +334,4 @@ class GPTService extends Service { } } -export default new GPTService(); \ No newline at end of file +export default new GPTService();