Interface RawCompletionChoice

interface RawCompletionChoice {
    finish_reason: null | "length" | "stop" | "content_filter";
    index: number;
    logprobs:
        | null
        | {
            text_offset: number[];
            token_logprobs: number[];
            tokens: string[];
            top_logprobs: Record<string, number>[];
        };
    text: string;
}

Properties

finish_reason: null | "length" | "stop" | "content_filter"
index: number
logprobs:
    | null
    | {
        text_offset: number[];
        token_logprobs: number[];
        tokens: string[];
        top_logprobs: Record<string, number>[];
    }
text: string