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

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

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

A chat completion message generated by the model.

Properties

content: string | null

The contents of the message.

role: "assistant"

The role of the author of this message.

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

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