mirror of
https://github.com/RockChinQ/QChatGPT.git
synced 2024-11-16 11:42:44 +08:00
deps: 删除无用依赖
This commit is contained in:
parent
06c8773975
commit
d74681a128
1
.github/dependabot.yml
vendored
1
.github/dependabot.yml
vendored
|
@ -11,5 +11,4 @@ updates:
|
||||||
interval: "weekly"
|
interval: "weekly"
|
||||||
allow:
|
allow:
|
||||||
- dependency-name: "yiri-mirai-rc"
|
- dependency-name: "yiri-mirai-rc"
|
||||||
- dependency-name: "dulwich"
|
|
||||||
- dependency-name: "openai"
|
- dependency-name: "openai"
|
||||||
|
|
|
@ -3,10 +3,8 @@ import pip
|
||||||
required_deps = {
|
required_deps = {
|
||||||
"requests": "requests",
|
"requests": "requests",
|
||||||
"openai": "openai",
|
"openai": "openai",
|
||||||
"dulwich": "dulwich",
|
|
||||||
"colorlog": "colorlog",
|
"colorlog": "colorlog",
|
||||||
"mirai": "yiri-mirai-rc",
|
"mirai": "yiri-mirai-rc",
|
||||||
"func_timeout": "func_timeout",
|
|
||||||
"PIL": "pillow",
|
"PIL": "pillow",
|
||||||
"nakuru": "nakuru-project-idk",
|
"nakuru": "nakuru-project-idk",
|
||||||
"CallingGPT": "CallingGPT",
|
"CallingGPT": "CallingGPT",
|
||||||
|
|
|
@ -24,18 +24,6 @@ def install_requirements(file):
|
||||||
# log.reset_logging()
|
# log.reset_logging()
|
||||||
|
|
||||||
|
|
||||||
def ensure_dulwich():
|
|
||||||
# 尝试三次
|
|
||||||
for i in range(3):
|
|
||||||
try:
|
|
||||||
import dulwich
|
|
||||||
return
|
|
||||||
except ImportError:
|
|
||||||
install('dulwich')
|
|
||||||
|
|
||||||
raise ImportError("无法自动安装dulwich库")
|
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
try:
|
try:
|
||||||
install("openai11")
|
install("openai11")
|
||||||
|
|
|
@ -1,13 +1,11 @@
|
||||||
requests
|
requests
|
||||||
openai
|
openai
|
||||||
dulwich~=0.21.6
|
|
||||||
colorlog~=6.6.0
|
colorlog~=6.6.0
|
||||||
yiri-mirai-rc
|
yiri-mirai-rc
|
||||||
aiocqhttp
|
aiocqhttp
|
||||||
qq-botpy
|
qq-botpy
|
||||||
websockets
|
websockets
|
||||||
urllib3
|
urllib3
|
||||||
func_timeout~=4.3.5
|
|
||||||
Pillow
|
Pillow
|
||||||
CallingGPT
|
CallingGPT
|
||||||
tiktoken
|
tiktoken
|
||||||
|
|
Loading…
Reference in New Issue
Block a user