Skip to content

fix(uploads): stop advertising legacy doc conversion#2087

Open
LeonSGP43 wants to merge 1 commit intobytedance:mainfrom
LeonSGP43:fix/drop-legacy-doc-conversion
Open

fix(uploads): stop advertising legacy doc conversion#2087
LeonSGP43 wants to merge 1 commit intobytedance:mainfrom
LeonSGP43:fix/drop-legacy-doc-conversion

Conversation

@LeonSGP43
Copy link
Copy Markdown

fixes #2002

Summary

  • remove legacy .doc from the shared markdown-convertible extension list
  • keep .docx conversion behavior unchanged
  • update upload/API docs so they only advertise formats that are actually converted
  • add gateway/client regression tests to ensure .doc uploads skip markdown conversion

Verification

  • PYTHONPATH=. uv run pytest tests/test_file_conversion.py tests/test_uploads_router.py tests/test_client.py -q
  • uv run ruff check packages/harness/deerflow/utils/file_conversion.py packages/harness/deerflow/client.py tests/test_file_conversion.py tests/test_uploads_router.py tests/test_client.py
  • uv run ruff format --check packages/harness/deerflow/utils/file_conversion.py packages/harness/deerflow/client.py tests/test_file_conversion.py tests/test_uploads_router.py tests/test_client.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Legacy .doc files are advertised as supported, but conversion is not reliable

1 participant