class MistralReader:
def __init__(
self,
api_key: Optional[str] = None,
model: Optional[str] = 'mistral-ocr-latest'
):
None
)"mistral-ocr-latest"
)def _encode_file(self, file_path: str):
def extract_text(
self,
file_path: str,
is_image: bool = False,
pages: Optional[List[int]] = None,
include_image_base64: Optional[bool] = None
):
False
)None
)None
)