跳转至

ImageAssetPointerChunk

class mint.types.ImageAssetPointerChunk ( StrictBase )

Fields:

  • format ( Literal['png', 'jpeg'] ) – Image format
  • location ( str ) – Path or URL to the image asset
  • expected_tokens ( int | None ) – Expected number of tokens this image represents. This is only advisory: the mindlab-toolkit backend will compute the number of tokens from the image, and we can fail requests quickly if the tokens does not match expected_tokens.
  • type ( Literal['image_asset_pointer'] )