mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-22 09:01:09 +03:00
df26e8aef9
* added perplexity node * last stable release * Update ChatPerplexity.ts * update * Update ChatPerplexity.ts * Update ChatPerplexity.ts * pnpm lint fix * feat: update @langchain/community from 0.3.24 to 0.3.29 --------- Co-authored-by: Marvin <marvin.chin@regentmarkets.com>
28 lines
796 B
TypeScript
28 lines
796 B
TypeScript
import { INodeParams, INodeCredential } from '../src/Interface'
|
|
|
|
class PerplexityApi implements INodeCredential {
|
|
label: string
|
|
name: string
|
|
version: number
|
|
description: string
|
|
inputs: INodeParams[]
|
|
|
|
constructor() {
|
|
this.label = 'Perplexity API'
|
|
this.name = 'perplexityApi'
|
|
this.version = 1.0
|
|
this.description =
|
|
'Refer to <a target="_blank" href="https://docs.perplexity.ai/docs/getting-started">official guide</a> on how to get API key'
|
|
this.inputs = [
|
|
{
|
|
label: 'Perplexity API Key',
|
|
name: 'perplexityApiKey',
|
|
type: 'password',
|
|
placeholder: '<PERPLEXITY_API_KEY>'
|
|
}
|
|
]
|
|
}
|
|
}
|
|
|
|
module.exports = { credClass: PerplexityApi }
|