MSWordResponse

Bases: BaseModel

This class represents a response object containing a base64-encoded DOCX file that can be decoded to obtain the DOCX file.

Source code in llm_utils/aiweb_common/fastapi/schemas.py
 5
 6
 7
 8
 9
10
11
12
13
class MSWordResponse(BaseModel):
    """
    This class represents a response object containing a base64-encoded DOCX file that can be decoded to
    obtain the DOCX file.
    """

    encoded_docx: str = Field(
        ..., description="Base64-encoded DOCX file. Decode to obtain the DOCX file."
    )