Interface CompletionInput

CompletionInput represents the full potential input options for completion.

interface CompletionInput {
    maxTokens: number;
    model: string;
    prompt: string;
    temperature: number;
    topK: number;
    topP: number;
}

Properties

maxTokens: number

maxTokens represents the max number of tokens to return.

model: string

model represents the model to use.

prompt: string

prompt represents the prompt to process.

temperature: number

temperature represents the randomness in GPT's output.

topK: number

topK represents the variability of the generated text.

topP: number

topP represents the diversity of the generated text.