• This function is used to get user input from the editor. It takes in temperature, default system message, previous input and extension as parameters. It returns a promise that resolves to an object containing temperature, instruction and input.

    Parameters

    • temperature: number

      The current temperature value.

    • defaultSystemMessage: string[]

      The default system message to be displayed in the editor.

    • previousInput: string = ''

      The previous input provided by the user. Default value is an empty string.

    • extension: string = '.txt'

      The file extension for the editor. Default value is '.txt'.

    Returns Promise<{
        input: string;
        instruction: string;
        temperature: number;
    }>

    A promise that resolves to an object containing temperature, instruction and input.

Generated using TypeDoc