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

x/openai/mod.ts>ChatCompletion

unofficial Deno wrapper for the Open Ai api
Extremely Popular
Go to Latest
interface ChatCompletion
import { type ChatCompletion } from "https://deno.land/x/openai@1.3.0/mod.ts";

Properties

id: string
object: "chat.completion"
created: number
choices: { index: number; message: { role: string; content: string; }; finish_reason: string; }[]
usage: { prompt_tokens: number; completion_tokens: number; total_tokens: number; }