mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-03-06 08:06:43 +08:00
Fix: The document generation node cannot generate the output content of a large model to a file. #13321 (#13326)
### What problem does this PR solve? Fix: The document generation node cannot generate the output content of a large model to a file. #13321 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
@ -277,7 +277,7 @@ class PDFGenerator(Message, ABC):
|
||||
print(f"Starting PDF generation for title: {title}, content length: {len(content)} chars")
|
||||
|
||||
# Resolve variable references in content using canvas
|
||||
if content and self._canvas.is_reff(content):
|
||||
if content and self._canvas.is_reff(content.strip()):
|
||||
# Extract the variable reference and get its value
|
||||
import re
|
||||
matches = re.findall(self.variable_ref_patt, content, flags=re.DOTALL)
|
||||
|
||||
Reference in New Issue
Block a user