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

x/openai/mod.ts>OpenAI#createCompletion

Unofficial Deno wrapper for the Open Ai api
Extremely Popular
Go to Latest
method OpenAI.prototype.createCompletion
import { OpenAI } from "https://deno.land/x/openai@1.4.3/mod.ts";

Creates a completion for the provided prompt and parameters

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