Merge pull request #1495 from kkacsh321/localai_auth

FEATURE: LocalAI Credential, Optional LocalAI Auth, Model list env var
This commit is contained in:
Henry Heng
2024-01-14 12:14:07 +00:00
committed by GitHub
3 changed files with 54 additions and 5 deletions
@@ -0,0 +1,23 @@
import { INodeParams, INodeCredential } from '../src/Interface'
class LocalAIApi implements INodeCredential {
label: string
name: string
version: number
inputs: INodeParams[]
constructor() {
this.label = 'LocalAI API'
this.name = 'localAIApi'
this.version = 1.0
this.inputs = [
{
label: 'LocalAI Api Key',
name: 'localAIApiKey',
type: 'password'
}
]
}
}
module.exports = { credClass: LocalAIApi }