Skip to main content
Module

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