mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-07-09 04:44:49 +08:00
fix: strip reasoning model thinking tags from document exports (#16687)
Co-authored-by: noob <yixiao121314@outlook.com>
This commit is contained in:
@@ -189,7 +189,7 @@ class DocGenerator(Message, ABC):
|
||||
flags=re.DOTALL,
|
||||
)
|
||||
|
||||
return content
|
||||
return self._strip_thinking(content)
|
||||
|
||||
def _get_output_directory(self) -> str:
|
||||
os.makedirs(self._default_output_directory, exist_ok=True)
|
||||
|
||||
Reference in New Issue
Block a user