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-fix: requirements-change and api updating #12

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

aibot88
Copy link

@aibot88 aibot88 commented Jan 27, 2024

  1. 修复requirements 中的重复包导入问题,删除numpy;openai;requests;selenium;scikit-learn重复安装
  2. 更新gpt4all的包为2.0+,更新原因:gpt4all修改模型格式和用法,逐渐放弃对bin模型的支持,官网也只能下载gguf文件
  3. 修复绝对路径
  4. 修复未知的时间格式为标准时间格式
  5. 提供local_model的embedding方法

@aibot88
Copy link
Author

aibot88 commented Jan 27, 2024


ceshi_suc
调整后代码已经在我的机器上测试通过。 @Y1ran

@@ -20,7 +20,7 @@
from .global_methods import *
from .models import *

with open("D:\\Tureco\\SimAIWorld\\environment\\frontend_server\\translator\\name.json", "r", encoding="utf-8") as f:
with open("./translator/name.json", "r", encoding="utf-8") as f:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里用相对路径不一定是对的吧,相对路径是相对于python启动时的工作目录的,而这里其实是想读取到跟views.py在同一目录下的name.json文件

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants