feat: 默认在启动时更新openai依赖库

This commit is contained in:
Rock Chin
2023-03-04 10:16:47 +08:00
parent f1e12563e9
commit a4d73090f8
3 changed files with 27 additions and 0 deletions

View File

@@ -8,6 +8,11 @@ def install(package):
main.reset_logging()
def run_pip(params: list):
pipmain(params)
main.reset_logging()
def install_requirements(file):
pipmain(['install', '-r', file, "--upgrade"])
main.reset_logging()