Interface ChatSSEInput

ChatSSEInput represents the full potential input options for SSE chat.

interface ChatSSEInput {
    inputExtension: InputExtension;
    maxTokens: number;
    messages: ChatInputMessage[];
    model: string;
    onMessage: ((event, err) => void);
    temperature: number;
    topK: number;
    topP: number;
}

Properties

inputExtension: InputExtension

inputExtension represents a set of optional pre-processing integrations.

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.

onMessage: ((event, err) => void)

onMessage represents a function that will receive the messages.

Type declaration

    • (event, err): void
    • Parameters

      Returns void

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.