- 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
511 B
Python
22 lines
511 B
Python
from typing import Any, List, Optional
|
|
from datetime import datetime
|
|
import uuid
|
|
|
|
from pydantic import BaseModel
|
|
|
|
from models.sql.slide import SlideModel
|
|
|
|
|
|
class PresentationWithSlides(BaseModel):
|
|
id: uuid.UUID
|
|
content: str
|
|
n_slides: int
|
|
language: str
|
|
title: Optional[str] = None
|
|
created_at: datetime
|
|
updated_at: datetime
|
|
tone: Optional[str] = None
|
|
verbosity: Optional[str] = None
|
|
slides: List[SlideModel]
|
|
theme: Optional[dict] = None
|
|
fonts: Optional[Any] = None
|