The base definition of a text chat user content.

interface TextChatUserContent {
    type: "text" | "image_url" | "video_url" | "input_audio";
}

Hierarchy (view full)

Properties

Properties

type: "text" | "image_url" | "video_url" | "input_audio"

The type of the user content. You can get the list of models supporting text, image, audio, video by using Foundation Model Specs with filters=function_text_chat, filters=function_image_chat, filters=function_audio_chat, filters=function_video_chat respectively.