- Updated docker-compose.yml to allow disabling embedded Ollama via environment variable. - Refactored Dockerfile and Dockerfile.dev for improved dependency management and installation process. - Enhanced FastAPI migration scripts to handle orphaned Alembic revisions and added new database migration logic. - Improved error handling in background tasks and Codex authentication endpoints. - Added support for font file uploads with better validation and extraction of font names. - Introduced new image search functionality with support for Pexels and Pixabay APIs.
22 lines
668 B
Python
22 lines
668 B
Python
PDF_MIME_TYPES = ["application/pdf"]
|
|
TEXT_MIME_TYPES = ["text/plain"]
|
|
POWERPOINT_TYPES = [
|
|
"application/vnd.openxmlformats-officedocument.presentationml.presentation"
|
|
]
|
|
# Alias used by font/PPTX validation helpers shared with the Electron server tree.
|
|
PPTX_MIME_TYPES = POWERPOINT_TYPES
|
|
WORD_TYPES = [
|
|
"application/msword",
|
|
"application/vnd.openxmlformats-officedocument.wordprocessingml.document",
|
|
]
|
|
SPREADSHEET_TYPES = ["text/csv", "application/csv"]
|
|
|
|
|
|
PNG_MIME_TYPES = ["image/png"]
|
|
JPEG_MIME_TYPES = ["image/jpeg"]
|
|
WEBP_MIME_TYPES = ["image/webp"]
|
|
|
|
|
|
UPLOAD_ACCEPTED_FILE_TYPES = (
|
|
PDF_MIME_TYPES + TEXT_MIME_TYPES + POWERPOINT_TYPES + WORD_TYPES
|
|
)
|