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

x/openai/resources/mod.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.33.1/resources/mod.ts";
interface ChatCompletionMessage
import { type ChatCompletionMessage } from "https://deno.land/x/openai@v4.33.1/resources/mod.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.