mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-22 09:01:09 +03:00
13fce45856
* Adds Mem0 Memory Node * fix: update pnpm-lock.yaml --------- Co-authored-by: Ong Chung Yau <33013947+chungyau97@users.noreply.github.com> Co-authored-by: chungyau97 <chungyau97@gmail.com>
28 lines
775 B
TypeScript
28 lines
775 B
TypeScript
import { INodeParams, INodeCredential } from '../src/Interface'
|
|
|
|
class Mem0MemoryApi implements INodeCredential {
|
|
label: string
|
|
name: string
|
|
version: number
|
|
description: string
|
|
inputs: INodeParams[]
|
|
|
|
constructor() {
|
|
this.label = 'Mem0 Memory API'
|
|
this.name = 'mem0MemoryApi'
|
|
this.version = 1.0
|
|
this.description =
|
|
'Visit <a target="_blank" href="https://app.mem0.ai/settings/api-keys">Mem0 Platform</a> to get your API credentials'
|
|
this.inputs = [
|
|
{
|
|
label: 'API Key',
|
|
name: 'apiKey',
|
|
type: 'password',
|
|
description: 'API Key from Mem0 dashboard'
|
|
}
|
|
]
|
|
}
|
|
}
|
|
|
|
module.exports = { credClass: Mem0MemoryApi }
|