2 Commits

Author SHA1 Message Date
end-4 1703d9bdad fix gpt only shows reasoning content (#1254) (#1576) 2025-07-06 20:54:07 +02:00
zoe chen f225ec1975 fix gpt only shows reasoning content (#1254) 2025-07-05 16:15:01 +08:00
+2 -2
View File
@@ -280,7 +280,7 @@ class GPTService extends Service {
} }
} }
else { else {
if (aiResponse.hasReasoningContent) { if (aiResponse.hasReasoningContent && !aiResponse.parsedReasoningContent) {
aiResponse.parsedReasoningContent = true; aiResponse.parsedReasoningContent = true;
aiResponse.addDelta(`\n</think>\n`); aiResponse.addDelta(`\n</think>\n`);
} }
@@ -334,4 +334,4 @@ class GPTService extends Service {
} }
} }
export default new GPTService(); export default new GPTService();