diff --git a/model/command/command.py b/model/command/command.py index 589d2bd04..43fdb1a34 100644 --- a/model/command/command.py +++ b/model/command/command.py @@ -30,7 +30,7 @@ class Command: commits = list(origin.refs.master.log())[0:5] remote_commit_hash = origin.refs.master.commit.hexsha - return True, f"当前版本: {commit.hexsha}\n最新版本: {remote_commit_hash}\n\n最新5条commit:\n\n使用update latest更新至最新版本\n" + return True, f"当前版本: {commit.hexsha}\n最新版本: {remote_commit_hash}\n\n最新5条commit:{str(commits)}\n\n使用update latest更新至最新版本\n" else: if l[1] == "latest": try: diff --git a/model/command/command_openai_official.py b/model/command/command_openai_official.py index 987ec92c2..6fe4a276c 100644 --- a/model/command/command_openai_official.py +++ b/model/command/command_openai_official.py @@ -30,7 +30,7 @@ class CommandOpenAIOfficial(Command): elif message.startswith("画"): return True, self.draw(message) elif message.startswith("update"): - return True, self.update() + return True, self.update(message) return False, None diff --git a/model/command/command_rev_chatgpt.py b/model/command/command_rev_chatgpt.py index 08edcf85c..f73ce3f48 100644 --- a/model/command/command_rev_chatgpt.py +++ b/model/command/command_rev_chatgpt.py @@ -14,7 +14,7 @@ class CommandRevChatGPT(Command): if message.startswith("help") or message.startswith("帮助"): return True, self.help() elif message.startswith("update"): - return True, self.update() + return True, self.update(message) return False, None def help(self): diff --git a/model/command/command_rev_edgegpt.py b/model/command/command_rev_edgegpt.py index 9ae8702ab..5e9fdf46a 100644 --- a/model/command/command_rev_edgegpt.py +++ b/model/command/command_rev_edgegpt.py @@ -11,7 +11,7 @@ class CommandRevEdgeGPT(Command): elif message.startswith("help") or message.startswith("帮助"): return True, self.help() elif message.startswith("update"): - return True, self.update() + return True, self.update(message) return False, None def reset(self, loop):