AxAIOpenAIChatContentPart Generated TypeScript API reference. typescript api api/reference build/apidocs/TypeAlias.AxAIOpenAIChatContentPart.md type AxAIOpenAIChatContentPart

AxAIOpenAIChatContentPart

TypeScript
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;

Defined in: https://github.com/ax-llm/ax/blob/7965c876f6a5b641e0cf166e8942e540cfde65e1/src/ax/ai/openai/chat_types.ts#L149

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

NameType
prompt_cache_breakpoint?AxAIOpenAIPromptCacheBreakpoint
Docs