Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/openai/resources/chat/mod.ts>ChatCompletionMessage

Deno build of the official Typescript library for the OpenAI API.
Extremely Popular
Latest
namespace ChatCompletionMessage
import { ChatCompletionMessage } from "https://deno.land/x/openai@v4.68.0/resources/chat/mod.ts";
interface ChatCompletionMessage
import { type ChatCompletionMessage } from "https://deno.land/x/openai@v4.68.0/resources/chat/mod.ts";

A chat completion message generated by the model.

Properties

content: string | null

The contents of the message.

refusal: string | null

The refusal message generated by the model.

role: "assistant"

The role of the author of this message.

optional
audio: ChatCompletionAudio | null

If the audio output modality is requested, this object contains data about the audio response from the model. Learn more.

optional
deprecated
function_call: ChatCompletionMessage.FunctionCall | null
optional
tool_calls: Array<ChatCompletionMessageToolCall>

The tool calls generated by the model, such as function calls.