Add Cerebras Node and Credential (#3377)

This commit is contained in:
Tyler
2024-10-23 16:09:52 -05:00
committed by GitHub
parent 95e0f01912
commit f2d2f59630
3 changed files with 186 additions and 0 deletions
@@ -0,0 +1,25 @@
import { INodeParams, INodeCredential } from '../src/Interface'
class CerebrasAPIAuth implements INodeCredential {
label: string
name: string
version: number
description: string
inputs: INodeParams[]
constructor() {
this.label = 'Cerebras API Key'
this.name = 'cerebrasAIApi'
this.version = 1.0
this.inputs = [
{
label: 'Cerebras API Key',
name: 'cerebrasApiKey',
type: 'password',
description: 'API Key (cloud.cerebras.ai)'
}
]
}
}
module.exports = { credClass: CerebrasAPIAuth }