Skip to content

@ralphschuler.ai function caller.index.<internal>.OpenAI.Completions.Completion

github-actions edited this page Nov 26, 2023 · 1 revision

Interface: Completion

OpenAI.Completions.Completion

Represents a completion response from the API. Note: both the streamed and non-streamed response objects share the same shape (unlike the chat endpoint).

Table of contents

Properties

Properties

choices

choices: CompletionChoice[]

The list of completion choices the model generated for the input prompt.

Defined in

node_modules/openai/resources/completions.d.ts:26


created

created: number

The Unix timestamp (in seconds) of when the completion was created.

Defined in

node_modules/openai/resources/completions.d.ts:30


id

id: string

A unique identifier for the completion.

Defined in

node_modules/openai/resources/completions.d.ts:22


model

model: string

The model used for completion.

Defined in

node_modules/openai/resources/completions.d.ts:34


object

object: "text_completion"

The object type, which is always "text_completion"

Defined in

node_modules/openai/resources/completions.d.ts:38


system_fingerprint

Optional system_fingerprint: string

This fingerprint represents the backend configuration that the model runs with.

Can be used in conjunction with the seed request parameter to understand when backend changes have been made that might impact determinism.

Defined in

node_modules/openai/resources/completions.d.ts:45


usage

Optional usage: CompletionUsage

Usage statistics for the completion request.

Defined in

node_modules/openai/resources/completions.d.ts:49

Typescript Libraries

Modules

Namespaces

Clone this wiki locally