AxAIOpenAIChatContentPart
type AxAIOpenAIChatContentPart =
| {
text: string;
type: string;
}
| {
image_url: {
details?: "high" | "low" | "auto";
url: string;
};
type: "image_url";
}
| {
input_audio: {
channels?: number;
data: string;
format: "wav" | "mp3" | "pcm16";
mimeType?: string;
sampleRate?: number;
};
type: "input_audio";
}
| {
file: {
file_data: string;
filename: string;
};
type: "file";
} & object;A content block in a Chat Completions message. Chat Completions accepts a
prompt_cache_breakpoint on text, image_url, input_audio, file and
refusal blocks; Ax never emits refusal on a request, so it is absent here.
Type declaration
| Name | Type |
|---|---|
prompt_cache_breakpoint? | AxAIOpenAIPromptCacheBreakpoint |