presenton/electron/servers/fastapi/models/decompose_files_body.py
sudipnext 3207422651 feat: add language parameter to decomposeDocuments API call
- Updated the decomposeDocuments method in PresentationGenerationApi to accept an optional language parameter.
- Modified the UploadPage component to pass the selected language from the config when calling the decomposeDocuments method.
2026-03-28 15:34:53 +05:45

11 lines
308 B
Python

from typing import List, Optional
from pydantic import BaseModel, Field
class DecomposeFilesBody(BaseModel):
file_paths: List[str]
language: Optional[str] = Field(
default=None,
description="Presentation language from the UI; used as LiteParse/Tesseract OCR language hint.",
)