chatgpt-optimized-official
Version:
ChatGPT Client using official OpenAI API
20 lines (18 loc) • 373 B
text/typescript
interface ChatGPTMessage {
role: string;
content?: string | ContentBlock[];
name?: string;
tool_call_id?: string;
tool_calls?: any[];
}
export default ChatGPTMessage;
export type ContentBlock = {
type: "text",
text: string
} | {
type: "image_url",
image_url: {
url: string,
detail?: "low" | "high" | "auto"
}
};