Feat: support context window for docx (#12455)

### What problem does this PR solve?

Feat: support context window for docx

#12303

Done:
- [x] naive.py
- [x] one.py

TODO:
- [ ] book.py
- [ ] manual.py

Fix: incorrect image position
Fix: incorrect chunk type tag

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
Magicbook1108
2026-01-07 15:08:17 +08:00
committed by GitHub
parent a442c9cac6
commit 011bbe9556
7 changed files with 397 additions and 120 deletions

View File

@ -529,6 +529,7 @@ def cancel_all_task_of(doc_id):
def has_canceled(task_id):
try:
if REDIS_CONN.get(f"{task_id}-cancel"):
logging.info(f"Task: {task_id} has been canceled")
return True
except Exception as e:
logging.exception(e)