优化目录结构 (#4058)

* 优化目录结构

* 修改一些测试问题

---------

Co-authored-by: glide-the <2533736852@qq.com>
This commit is contained in:
liunux4odoo 2024-05-22 13:11:45 +08:00 committed by GitHub
parent 842a23006a
commit 5c650a8dc3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
753 changed files with 846 additions and 745 deletions

8
.gitignore vendored
View File

@ -1,10 +1,10 @@
*.log
*.log.*
*.bak
/chatchat-server/chatchat/data/*
!/chatchat-server/chatchat/data/knowledge_base/samples
/chatchat-server/chatchat/data/knowledge_base/samples/vector_store
!/chatchat-server/chatchat/data/nltk_data
/libs/chatchat-server/chatchat/data/*
!/libs/chatchat-server/chatchat/data/knowledge_base/samples
/libs/chatchat-server/chatchat/data/knowledge_base/samples/vector_store
!/libs/chatchat-server/chatchat/data/nltk_data
.vscode/

View File

@ -1,14 +0,0 @@
"""
用于批量将configs下的.example文件复制并命名为.py文件
"""
import os
import shutil
if __name__ == "__main__":
files = os.listdir("configs")
src_files = [os.path.join("configs", file) for file in files if ".example" in file]
for src_file in src_files:
tar_file = src_file.replace(".example", "")
shutil.copy(src_file, tar_file)

View File

@ -1,6 +0,0 @@
from chatchat.model_loaders.init_server import init_server
def test_init_server():
init_server()

View File

@ -38,6 +38,3 @@ ollama:
model_credentials:
base_url: 'http://172.21.192.1:11434'
mode: 'completion'

Some files were not shown because too many files have changed in this diff Show More