import { type Completion } from "https://deno.land/x/openai@v4.39.0/resources/mod.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.