- 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.
11 lines
308 B
Python
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.",
|
|
)
|