Feat/2070 glm 4 and glm 3 turbo (#2114)

This commit is contained in:
crazywoola
2024-01-21 16:58:06 +08:00
committed by GitHub
parent e19ad023d2
commit 8438d820ad
6 changed files with 92 additions and 6 deletions

View File

@@ -16,6 +16,8 @@ from werkzeug.datastructures import FileStorage
from werkzeug.exceptions import NotFound
IMAGE_EXTENSIONS = ['jpg', 'jpeg', 'png', 'webp', 'gif', 'svg']
IMAGE_EXTENSIONS.extend([ext.upper() for ext in IMAGE_EXTENSIONS])
ALLOWED_EXTENSIONS = ['txt', 'markdown', 'md', 'pdf', 'html', 'htm', 'xlsx', 'docx', 'doc', 'csv'] + IMAGE_EXTENSIONS
UNSTRUSTURED_ALLOWED_EXTENSIONS = ['txt', 'markdown', 'md', 'pdf', 'html', 'htm', 'xlsx',
'docx', 'doc', 'csv', 'eml', 'msg', 'pptx', 'ppt', 'xml'] + IMAGE_EXTENSIONS