Skip to content

Commit

Permalink
🐛 Bug: Fix the bug where unsupported files cannot correctly return em…
Browse files Browse the repository at this point in the history
…pty content.
  • Loading branch information
yym68686 committed Oct 31, 2024
1 parent ce08744 commit fe1dba6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

setup(
name="modelmerge",
version="0.11.58",
version="0.11.59",
description="modelmerge is a multi-large language model API aggregator.",
long_description=Path.open(Path("README.md"), encoding="utf-8").read(),
long_description_content_type="text/markdown",
Expand Down
1 change: 1 addition & 0 deletions src/ModelMerge/utils/scripts.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ def get_audio_message(file_bytes):
def Document_extract(docurl, docpath=None, engine = None):
filename = docpath
text = None
prompt = None
if docpath and docurl and "paper.pdf" != docpath:
filename = get_doc_from_url(docurl)
docpath = os.getcwd() + "/" + filename
Expand Down

0 comments on commit fe1dba6

Please sign in to comment.