Repository: FlowiseAI/Flowise
File: packages/components/nodes/prompts/PromptLangfuse/PromptLangfuse.ts (TypeScript)

Code before:
import { PromptTemplateInput } from '@langchain/core/prompts'
import { Langfuse } from "langfuse";

class PromptLangfuse_Prompts implements INode {
    label: string
    name: string
    version: number
    description: string
    type: string
    icon: string
    category: string
    baseClasses: string[]
    inputs: INodeParams[]

    constructor() {
        this.label = 'LangFuse Prompt Template'
        this.name = 'promptLangFuse'
        this.version = 1.0
        this.type = 'PromptTemplate'
        this.icon = 'prompt.svg'
        this.category = 'Prompts'
        this.description = 'Fetch schema from LangFuse to represent a prompt for an LLM'
        this.baseClasses = [...getBaseClasses(PromptTemplate)]
        this.inputs = [
            {
                label: 'Prompt Name',
                name: 'template',
                type: 'string',
                placeholder: `Name of the template`
            },
            {
                label: 'Format Prompt Values',
                name: 'promptValues',
                type: 'json',
                optional: true,
                acceptVariable: true,
                list: true
            }
        ]
    }

    async init(nodeData: INodeData): Promise<any> {
        const langfuse = new Langfuse();
 
        const langfusePrompt = await langfuse.getPrompt(nodeData.inputs?.template as string)
        const template = langfusePrompt.getLangchainPrompt();

        const promptValuesStr = nodeData.inputs?.promptValues

        let promptValues: ICommonObject = {}
        if (promptValuesStr) {

Review comment (security):
Hey! thanks for the contribution!

I've just added this [PR](https://github.com/FlowiseAI/Flowise/pull/2902) that allow users to add nodes created by community.

Can you add this `this.author = 'your name'` to here, so as we can differentiate that this is a node created by community, and will be shown on UI as well

Code after:
import { PromptTemplateInput } from '@langchain/core/prompts'
import { Langfuse } from 'langfuse'

class PromptLangfuse_Prompts implements INode {
    label: string
    name: string
    version: number
    description: string
    type: string
    icon: string
    category: string
    author: string
    baseClasses: string[]
    credential: INodeParams
    inputs: INodeParams[]

    constructor() {
        this.label = 'LangFuse Prompt Template'
        this.name = 'promptLangFuse'
        this.version = 1.0
        this.type = 'PromptTemplate'
        this.icon = 'prompt.svg'
        this.category = 'Prompts'
        this.author = 'Lucas Cruz'
        this.description = 'Fetch schema from LangFuse to represent a prompt for an LLM'
        this.baseClasses = [...getBaseClasses(PromptTemplate)]
        this.credential = {
            label: 'Langfuse Credential',
            name: 'credential',
            type: 'credential',
            credentialNames: ['langfuseApi']
        }
        this.inputs = [
            {
                label: 'Prompt Name',
                name: 'template',
                type: 'string',
                placeholder: `Name of the template`
            },
            {
                label: 'Format Prompt Values',
                name: 'promptValues',
                type: 'json',
                optional: true,
                acceptVariable: true,
                list: true
            }
        ]
    }

    async init(nodeData: INodeData, _: string, options: ICommonObject): Promise<any> {