From d2e3744ca3377fbd399b465e8a048c7aeadbe90b Mon Sep 17 00:00:00 2001 From: Rain Wang Date: Fri, 18 Apr 2025 16:05:48 +0800 Subject: [PATCH] Switching from CONSOLE_API_URL to FILES_URL in word_extractor.py (#18249) --- api/core/rag/extractor/word_extractor.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/api/core/rag/extractor/word_extractor.py b/api/core/rag/extractor/word_extractor.py index 70c618a631..edaa8c92fa 100644 --- a/api/core/rag/extractor/word_extractor.py +++ b/api/core/rag/extractor/word_extractor.py @@ -126,9 +126,7 @@ class WordExtractor(BaseExtractor): db.session.add(upload_file) db.session.commit() - image_map[rel.target_part] = ( - f"![image]({dify_config.CONSOLE_API_URL}/files/{upload_file.id}/file-preview)" - ) + image_map[rel.target_part] = f"![image]({dify_config.FILES_URL}/files/{upload_file.id}/file-preview)" return image_map