We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa50ba4 commit 2f099b5Copy full SHA for 2f099b5
tools/server/public/index.html.gz
2 Bytes
tools/server/webui/src/components/useChatExtraContext.tsx
@@ -46,8 +46,11 @@ export function useChatExtraContext(): ChatExtraContextApi {
46
try {
47
for (const file of files) {
48
const mimeType = file.type;
49
- if (file.size > 10 * 1024 * 1024) {
50
- toast.error('File is too large. Maximum size is 10MB.');
+
+ // this limit is only to prevent accidental uploads of huge files
51
+ // it can potentially crashes the browser because we read the file as base64
52
+ if (file.size > 500 * 1024 * 1024) {
53
+ toast.error('File is too large. Maximum size is 500MB.');
54
break;
55
}
56
0 commit comments