forked from illacloud/illa-builder
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: agent support file parse message & upload parse file
- Loading branch information
1 parent
414c378
commit c865fc1
Showing
24 changed files
with
1,214 additions
and
1,044 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
apps/builder/src/page/AI/components/KnowledgeUpload/contants.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { | ||
EXCEL_FILE_TYPE_RULES, | ||
PDF_FILE_TYPE_RULES, | ||
WORD_FILE_TYPE_RULES, | ||
} from "@illa-public/utils" | ||
|
||
export const JSON_RULES = ["application/json"] | ||
export const ACCEPT = [ | ||
WORD_FILE_TYPE_RULES[2], | ||
...EXCEL_FILE_TYPE_RULES, | ||
...PDF_FILE_TYPE_RULES, | ||
".mdx", | ||
".md", | ||
".txt", | ||
".json", | ||
// "image/*", // TODO: not support currently | ||
] | ||
|
||
export const MAX_MESSAGE_FILES_LENGTH = 10 | ||
export const MAX_FILE_SIZE = 20971520 // 20MB |
Oops, something went wrong.