Skip to content

Commit 7009a1b

Browse files
committed
Added support for cloudflare Workers AI via the OpenAI endpoint
1 parent 14fc1b4 commit 7009a1b

File tree

4 files changed

+469
-0
lines changed

4 files changed

+469
-0
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
import { INodeParams, INodeCredential } from '../src/Interface'
2+
3+
class GoogleGenerativeAICredential implements INodeCredential {
4+
label: string
5+
name: string
6+
version: number
7+
description: string
8+
inputs: INodeParams[]
9+
10+
constructor() {
11+
this.label = 'Cloudflare Workers AI'
12+
this.name = 'cloudflareWorkersAI'
13+
this.version = 1.0
14+
this.description = 'Input your Cloudflare credentials here.'
15+
this.inputs = [
16+
{
17+
label: 'Cloudflare Account ID',
18+
name: 'cloudflareWorkersAccountID',
19+
type: 'string'
20+
},
21+
{
22+
label: 'Cloudflare AI API Key',
23+
name: 'cloudflareWorkersAIKey',
24+
type: 'password'
25+
}
26+
]
27+
}
28+
}
29+
30+
module.exports = { credClass: GoogleGenerativeAICredential }

0 commit comments

Comments
 (0)