Skip to main content

Interface: ImagePart

Properties

image

image: DataContent

Image data. Can either be a base64-encoded string, a Uint8Array, an ArrayBuffer, or a Buffer.

Defined in

packages/modelfusion/src/model-function/generate-text/prompt-template/ContentPart.ts:19


mimeType

Optional mimeType: string

Optional mime type of the image.

Defined in

packages/modelfusion/src/model-function/generate-text/prompt-template/ContentPart.ts:24


type

type: "image"

Defined in

packages/modelfusion/src/model-function/generate-text/prompt-template/ContentPart.ts:14