Skip to content

Commit

Permalink
limit change to only Markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
P. Taylor Goetz committed May 23, 2024
1 parent aa52123 commit 99e3f9b
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 11 deletions.
1 change: 0 additions & 1 deletion backend/app/parsing.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
"text/markdown": TextParser(),
"text/plain": TextParser(),
"text/html": BS4HTMLParser(),
"text/yaml": TextParser(),
"application/msword": MsWordParser(),
"application/vnd.openxmlformats-officedocument.wordprocessingml.document": (
MsWordParser()
Expand Down
2 changes: 0 additions & 2 deletions backend/tests/unit_tests/agent_executor/test_parsing.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ def test_attempt_to_parse_each_fixture() -> None:
continue
seen_mimetypes.add(type_)
blob = Blob.from_path(path)
if not blob.mimetype:
blob.mimetype = type_
documents = MIMETYPE_BASED_PARSER.parse(blob)
try:
assert len(documents) == 1
Expand Down
1 change: 0 additions & 1 deletion backend/tests/unit_tests/agent_executor/test_upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,4 @@ def test_mimetype_guessing() -> None:
"sample.pdf": "application/pdf",
"sample.rtf": "application/rtf",
"sample.txt": "text/plain",
"sample.yaml": "text/yaml",
} == name_to_mime
6 changes: 0 additions & 6 deletions backend/tests/unit_tests/fixtures/sample.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion frontend/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export type TYPE_NAME = (typeof TYPES)[keyof typeof TYPES]["id"];
export const DROPZONE_CONFIG = {
multiple: true,
accept: {
"text/*": [".txt", ".htm", ".html", ".md",".yml", ".yaml"],
"text/*": [".txt", ".htm", ".html", ".md"],
"application/pdf": [".pdf"],
"application/vnd.openxmlformats-officedocument.wordprocessingml.document": [
".docx",
Expand Down

0 comments on commit 99e3f9b

Please sign in to comment.