Skip to main content
Deno 2 is finally here 🎉️
Learn more
method OpenAI.prototype.createChatCompletion
import { OpenAI } from "https://deno.land/x/commit_genius@v0.5.0/deps.ts";

Creates a completion for the chat message

https://platform.openai.com/docs/api-reference/chat/create

Parameters

options: ChatCompletionOptions

Returns

Promise<ChatCompletion>