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

Creates a completion for the provided prompt and parameters

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

Parameters

options: CompletionOptions

Returns

Promise<Completion>