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. Source: https://github.com/openai/openai-node
Extremely Popular
Go to Latest
method Completions.prototype.create
import { Completions } from "https://deno.land/x/openai@v4.19.1/resources/mod.ts";

Creates a model response for the given chat conversation.

Parameters

optional
options: Core.RequestOptions

Parameters

optional
options: Core.RequestOptions

Returns

APIPromise<Stream<ChatCompletionChunk>>

Parameters

body: ChatCompletionCreateParamsBase
optional
options: Core.RequestOptions