import { type Completion } from "https://deno.land/x/openai@v4.61.1/resources/completions.ts";
Represents a completion response from the API. Note: both the streamed and non-streamed response objects share the same shape (unlike the chat endpoint).
Properties
choices: Array<CompletionChoice>
The list of completion choices the model generated for the input prompt.
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.
optional
usage: CompletionUsageUsage statistics for the completion request.