OpenAI prompt data

interface Prompt {
    function_call?: ChatCompletionFunctionCallOption | "auto" | "none";
    functions?: Function[];
    messages: ChatCompletionMessageParam[];
}

Properties

function_call?: ChatCompletionFunctionCallOption | "auto" | "none"
functions?: Function[]

OpenAI function definitions

messages: ChatCompletionMessageParam[]

OpenAI chat messages