- 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.
11 lines
242 B
Python
11 lines
242 B
Python
from typing import Optional
|
|
from pydantic import BaseModel
|
|
|
|
|
|
class OllamaModelStatus(BaseModel):
|
|
name: str
|
|
size: Optional[int] = None
|
|
downloaded: Optional[int] = None
|
|
status: str
|
|
done: bool
|
|
error: Optional[str] = None
|