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

x/openai/resources/mod.ts>Completions#create

Deno build of the official Typescript library for the OpenAI API.
Extremely Popular
Go to Latest
method Completions.prototype.create
import { Completions } from "https://deno.land/x/openai@v4.21.0/resources/mod.ts";

Creates a completion for the provided prompt and parameters.

Parameters

optional
options: Core.RequestOptions

Returns

APIPromise<Completion>

Parameters

optional
options: Core.RequestOptions

Returns

APIPromise<Stream<Completion>>

Parameters

body: CompletionCreateParamsBase
optional
options: Core.RequestOptions

Returns

APIPromise<Stream<Completion> | Completion>