MistralClient.Models.OCRRequest (mistralex_ai v0.1.0)

View Source

Represents an OCR processing request.

Summary

Functions

Create a new OCR request.

Convert an OCR request to a map for API requests.

Types

document_type()

response_format()

@type response_format() :: map()

t()

@type t() :: %MistralClient.Models.OCRRequest{
  bbox_annotation_format: response_format() | nil,
  document: document_type(),
  document_annotation_format: response_format() | nil,
  id: String.t() | nil,
  image_limit: integer() | nil,
  image_min_size: integer() | nil,
  include_image_base64: boolean() | nil,
  model: String.t(),
  pages: [integer()] | nil
}

Functions

new(model, document, opts \\ [])

@spec new(String.t(), document_type(), keyword()) :: t()

Create a new OCR request.

to_map(request)

@spec to_map(t()) :: map()

Convert an OCR request to a map for API requests.