Skip to content

Commit

Permalink
Fix the bug displayed in the error log
Browse files Browse the repository at this point in the history
  • Loading branch information
yym68686 committed Jul 3, 2024
1 parent e09b66a commit 52f0f5f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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.8.4",
version="0.8.5",
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
2 changes: 1 addition & 1 deletion src/ModelMerge/models/chatgpt.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ def ask_stream(
print("请求超时,请检查网络连接或增加超时时间。{e}")
return
except Exception as e:
print("发生了未预料的错误:{e}")
print(f"发生了未预料的错误:{e}")
if "Invalid URL" in str(e):
e = "You have entered an invalid API URL, please use the correct URL and use the `/start` command to set the API URL again. Specific error is as follows:\n\n" + str(e)
raise Exception(f"{e}")
Expand Down

0 comments on commit 52f0f5f

Please sign in to comment.