mirror of
https://github.com/zhayujie/chatgpt-on-wechat.git
synced 2026-07-17 19:27:11 +08:00
feat(knowledge): add document creation and import
This commit is contained in:
@@ -280,6 +280,7 @@ def test_import_documents_skip_overwrite_and_failures(tmp_path):
|
||||
def test_import_documents_rejects_large_files_and_batches(tmp_path):
|
||||
svc, manager = service(tmp_path)
|
||||
(tmp_path / "knowledge/notes").mkdir()
|
||||
assert svc.MAX_IMPORT_TOTAL_SIZE == 200 * 1024 * 1024
|
||||
|
||||
too_large = svc.dispatch("import_documents", {
|
||||
"target_category": "notes",
|
||||
|
||||
Reference in New Issue
Block a user