"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""

from __future__ import annotations
from .imageurl import ImageURL, ImageURLTypedDict
from mistralai.types import BaseModel
import pydantic
from typing import Final, Literal, Optional, TypedDict, Union
from typing_extensions import Annotated


ImageURLChunkType = Literal["image_url"]

ImageURLChunkImageURLTypedDict = Union[ImageURLTypedDict, str]


ImageURLChunkImageURL = Union[ImageURL, str]


class ImageURLChunkTypedDict(TypedDict):
    r"""{\"type\":\"image_url\",\"image_url\":{\"url\":\"data:image/png;base64,iVBORw0"""

    image_url: ImageURLChunkImageURLTypedDict


class ImageURLChunk(BaseModel):
    r"""{\"type\":\"image_url\",\"image_url\":{\"url\":\"data:image/png;base64,iVBORw0"""

    image_url: ImageURLChunkImageURL

    # fmt: off
    TYPE: Annotated[Final[Optional[ImageURLChunkType]], pydantic.Field(alias="type")] = "image_url" # type: ignore
    # fmt: on
