import { Completions } from "https://deno.land/x/openai@v4.61.1/resources/chat/completions.ts";
class Completions
extends APIResource
import { Completions } from "https://deno.land/x/openai@v4.61.1/resources/chat/completions.ts";
Methods
create(body: ChatCompletionCreateParamsNonStreaming, options?: Core.RequestOptions): APIPromise<ChatCompletion>
Creates a model response for the given chat conversation.
create(body: ChatCompletionCreateParamsStreaming, options?: Core.RequestOptions): APIPromise<Stream<ChatCompletionChunk>>
create(body: ChatCompletionCreateParamsBase, options?: Core.RequestOptions): APIPromise<Stream<ChatCompletionChunk> | ChatCompletion>