Repository: FlowiseAI/Flowise
File: packages/components/nodes/memory/MotorheadMemory/MotorheadMemory.ts (TypeScript)

Code before:
                default: 'chat_history'
            },
            {
                label: 'Session Id',
                name: 'sessionId',
                type: 'string',
                description: 'if empty, chatId will be used automatically',
                default: '',
                additionalParams: true,
                optional: true
            },
            {
                label: 'API Key',
                name: 'apiKey',
                type: 'string',
                optional: true
            },
            {
                label: 'Client ID',
                name: 'clientId',
                type: 'string',
                optional: true
            }
        ]
    }

    async init(nodeData: INodeData, _: string, options: ICommonObject): Promise<any> {
        const memoryKey = nodeData.inputs?.memoryKey as string
        const baseURL = nodeData.inputs?.baseURL as string
        const sessionId = nodeData.inputs?.sessionId as string
        const apiKey = nodeData.inputs?.apiKey as string
        const clientId = nodeData.inputs?.clientId as string

        const chatId = options?.chatId as string

        console.log(chatId)

        let obj: MotorheadMemoryInput = {
            returnMessages: true,
            sessionId: sessionId ? sessionId : chatId,
            memoryKey
        }

        if (baseURL) {
            obj = {
                ...obj,
                url: baseURL
            }
        } else {
            obj = {
                ...obj,

Review comment (suggestion):
can we add `additionalParams: true` and `description: 'Only needed when using hosted solution https://getmetal.io'`

Code after:
                default: 'chat_history'
            },
            {
                label: 'Session Id',
                name: 'sessionId',
                type: 'string',
                description: 'if empty, chatId will be used automatically',
                default: '',
                additionalParams: true,
                optional: true
            },
            {
                label: 'API Key',
                name: 'apiKey',
                type: 'string',
                description: 'Only needed when using hosted solution - https://getmetal.io',
                additionalParams: true,
                optional: true
            },
            {
                label: 'Client ID',
                name: 'clientId',
                type: 'string',
                description: 'Only needed when using hosted solution - https://getmetal.io',
                additionalParams: true,
                optional: true
            }
        ]
    }

    async init(nodeData: INodeData, _: string, options: ICommonObject): Promise<any> {
        const memoryKey = nodeData.inputs?.memoryKey as string
        const baseURL = nodeData.inputs?.baseURL as string
        const sessionId = nodeData.inputs?.sessionId as string
        const apiKey = nodeData.inputs?.apiKey as string
        const clientId = nodeData.inputs?.clientId as string

        const chatId = options?.chatId as string

        let obj: MotorheadMemoryInput = {
            returnMessages: true,
            sessionId: sessionId ? sessionId : chatId,
            memoryKey
        }

        if (baseURL) {
            obj = {
                ...obj,
                url: baseURL
            }
        } else {