mirror of
https://github.com/zhayujie/chatgpt-on-wechat.git
synced 2026-07-17 11:07:11 +08:00
feat(knowledge): add document creation and import
This commit is contained in:
@@ -114,6 +114,7 @@ def test_knowledge_import_handler_delegates_to_dispatch(tmp_path):
|
||||
def test_knowledge_import_handler_rejects_large_content_length(tmp_path):
|
||||
from channel.web.web_channel import KnowledgeImportHandler
|
||||
from agent.knowledge.service import KnowledgeService
|
||||
assert KnowledgeService.MAX_IMPORT_TOTAL_SIZE == 200 * 1024 * 1024
|
||||
|
||||
with patch("channel.web.web_channel._require_auth"), \
|
||||
patch("channel.web.web_channel.web.header"), \
|
||||
|
||||
Reference in New Issue
Block a user