fix(avatar): cap knowledge files at 50MB

This commit is contained in:
stefanfeng
2026-09-04 15:18:39 +08:00
parent 6b7201e890
commit 08c58fe0e6
2 changed files with 3 additions and 3 deletions
@@ -82,7 +82,7 @@ def test_upload_rejects_oversize_file_before_queuing_indexing(
payload = response.json()
assert payload["code"] == 400
assert payload["message"] == "文件不能超过 100MB"
assert payload["message"] == "文件不能超过 50MB"
enqueue.assert_not_called()
assert not list((tmp_path / context["avatar"].id).glob("*"))