import { Completions } from "https://deno.land/x/openai@v4.33.1/resources/completions.ts";
class Completions
extends APIResource
import { Completions } from "https://deno.land/x/openai@v4.33.1/resources/completions.ts";
Methods
create(body: CompletionCreateParamsNonStreaming, options?: Core.RequestOptions): APIPromise<Completion>
Creates a completion for the provided prompt and parameters.
create(body: CompletionCreateParamsStreaming, options?: Core.RequestOptions): APIPromise<Stream<Completion>>
create(body: CompletionCreateParamsBase, options?: Core.RequestOptions): APIPromise<Stream<Completion> | Completion>