Interface ChatInput

ChatInput represents the full potential input options for chat.

interface ChatInput {
    maxTokens: number;
    messages: ChatInputMessage[];
    model: string;
    options: ChatInputOptions;
    temperature: number;
    topK: number;
    topP: number;
}

Properties

maxTokens: number

maxTokens represents the max number of tokens to return.

messages: ChatInputMessage[]

messages represents the set of messages to process.

model: string

model represents the model to use.

options represents a set of optional parameters.

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.