Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

更新投资人;修复通义千问必须配置文件的bug #343

Merged
merged 2 commits into from
Sep 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions docs/投资人/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,11 @@
avatar: "https://images.cnblogs.com/cnblogs_com/ikaros-521/2328032/o_230826092019_QQ%E5%9B%BE%E7%89%8720230826171930.jpg",
amount: "¥100"
},
{
name: "凤凰",
avatar: "https://images.cnblogs.com/cnblogs_com/ikaros-521/2328032/o_230925111651_QQ%E5%9B%BE%E7%89%8720230925190851.jpg",
amount: "¥100"
},
{
name: "很养眼的丑男",
avatar: "https://images.cnblogs.com/cnblogs_com/ikaros-521/2328032/o_230722162732_QQ%E5%9B%BE%E7%89%8720230723000544.jpg",
Expand Down
Binary file modified docs/投资人/投资人.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 6 additions & 2 deletions utils/gpt_model/tongyi.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,12 @@ def __init__(self, data):

self.cookies_dict = {}

with open(self.cookie_path, "r") as f:
self.cookies_dict = convert_cookies(json.load(f))
try:
with open(self.cookie_path, "r") as f:
self.cookies_dict = convert_cookies(json.load(f))
except Exception as e:
logging.error(e)
logging.error("通义千问的cookie文件不存在,功能无法正常使用,请检查配置!")


def get_resp(self, prompt):
Expand Down