Introduce new credential for LocalAI, Pass optional auth to LocalAI, New env var

This commit is contained in:
Keith Kacsh
2024-01-06 17:16:06 -07:00
parent d5b8db5599
commit 595f1ed7f2
3 changed files with 48 additions and 6 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 }