ChatContentItems - TypeScript SDK
ChatContentItems type definition
Content part for chat completion messages
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
ChatContentItems type definition
models.ChatContentFileconst value: models.ChatContentFile = {
file: {},
type: "file",
};
models.ChatContentImageconst value: models.ChatContentImage = {
imageUrl: {
url: "https://vague-assist.org/",
},
type: "image_url",
};
models.ChatContentAudioconst value: models.ChatContentAudio = {
inputAudio: {
data: "<value>",
format: "<value>",
},
type: "input_audio",
};
models.LegacyChatContentVideoconst value: models.LegacyChatContentVideo = {
type: "input_video",
videoUrl: {
url: "https://example.com/video.mp4",
},
};
models.ChatContentTextconst value: models.ChatContentText = {
text: "Hello, world!",
type: "text",
};
models.ChatContentVideoconst value: models.ChatContentVideo = {
type: "video_url",
videoUrl: {
url: "https://example.com/video.mp4",
},
};