From 8f863cf530555689eaac3e4783920cfb01ba4358 Mon Sep 17 00:00:00 2001 From: Dong_master <2213070223@qq.com> Date: Fri, 15 Aug 2025 00:55:39 +0800 Subject: [PATCH] fix: remove_think bug --- pkg/provider/runners/difysvapi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/provider/runners/difysvapi.py b/pkg/provider/runners/difysvapi.py index 3b072bc2..1a443a16 100644 --- a/pkg/provider/runners/difysvapi.py +++ b/pkg/provider/runners/difysvapi.py @@ -406,7 +406,7 @@ class DifyServiceAPIRunner(runner.RequestRunner): if chunk['event'] == 'message': message_idx += 1 if remove_think: - if message_idx == 1: + if '' in chunk['answer'] and not think_start: think_start = True continue if '' in chunk['answer'] and not think_end: