A-kirami / nonebot-plugin-chatgpt

MIT License
319 stars 37 forks source link

update new model #109

Closed cjxzdzh closed 1 year ago

cjxzdzh commented 1 year ago

这个 PR 带来了什么样的更改?

这个 PR 是否存在破坏性变更?

描述

动机和背景

其他信息

检查工作

sourcery-ai[bot] commented 1 year ago

Sourcery Code Quality Report

Merging this PR leaves code quality unchanged.

Quality metrics Before After Change
Complexity 7.15 ⭐ 7.15 ⭐ 0.00
Method Length 90.69 🙂 90.69 🙂 0.00
Working memory 4.79 ⭐ 4.79 ⭐ 0.00
Quality 61.09% 🙂 61.09% 🙂 0.00%
Other metrics Before After Change
Lines 229 229 0
Changed files Quality Before Quality After Quality Change
nonebot_plugin_chatgpt/chatgpt.py 61.09% 🙂 61.09% 🙂 0.00%

Here are some functions in these files that still need a tune-up:

File Function Complexity Length Working Memory Quality Recommendation
nonebot_plugin_chatgpt/chatgpt.py Chatbot.get_chat_response 9 🙂 360 ⛔ 39.75% 😞 Try splitting into smaller methods
nonebot_plugin_chatgpt/chatgpt.py Chatbot.login 13 🙂 135 😞 10 😞 52.20% 🙂 Try splitting into smaller methods. Extract out complex expressions
nonebot_plugin_chatgpt/chatgpt.py Chatbot.__init__ 4 ⭐ 109 🙂 12 😞 60.18% 🙂 Extract out complex expressions

Legend and Explanation

The emojis denote the absolute quality of the code:

The 👍 and 👎 indicate whether the quality has improved or gotten worse with this pull request.


Please see our documentation here for details on how these metrics are calculated.

We are actively working on this report - lots more documentation and extra metrics to come!

Help us improve this quality report!