fix: allow 500MB async knowledge uploads
This commit is contained in:
@@ -5,6 +5,14 @@ import { resolve } from 'node:path';
|
||||
const read = (path: string) => readFileSync(resolve(process.cwd(), path), 'utf8');
|
||||
|
||||
describe('资料处理媒体重试契约', () => {
|
||||
it('批量队列允许普通文档和图片上传至 500 MiB', () => {
|
||||
const page = read('src/views/knowledge/processing.vue');
|
||||
|
||||
expect(page).toContain('const maxFileSize = 500 * 1024 * 1024');
|
||||
expect(page).toContain('仅支持非空且 500MB 内的 txt/md/pdf/Word/Excel/PPT/图片/视频/ZIP 文件');
|
||||
expect(page).toContain('超过 500MB 的文件');
|
||||
});
|
||||
|
||||
it('把零文本媒体展示为待重试并从原文件重新入队', () => {
|
||||
const api = read('src/api/aihr/processing.ts');
|
||||
const page = read('src/views/knowledge/processing.vue');
|
||||
|
||||
Reference in New Issue
Block a user