Feature/OpenRouter (#3865)

add open router
This commit is contained in:
Henry Heng
2025-01-13 20:35:59 +00:00
committed by GitHub
parent d2fa430725
commit aab493c3c7
4 changed files with 196 additions and 1 deletions
@@ -0,0 +1,25 @@
import { INodeParams, INodeCredential } from '../src/Interface'
class OpenRouterAPIAuth implements INodeCredential {
label: string
name: string
version: number
description: string
inputs: INodeParams[]
constructor() {
this.label = 'OpenRouter API Key'
this.name = 'openRouterApi'
this.version = 1.0
this.inputs = [
{
label: 'OpenRouter API Key',
name: 'openRouterApiKey',
type: 'password',
description: 'API Key'
}
]
}
}
module.exports = { credClass: OpenRouterAPIAuth }