-
Notifications
You must be signed in to change notification settings - Fork 0
/
openai-api-config.html
33 lines (30 loc) · 1 KB
/
openai-api-config.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<script type="text/javascript">
RED.nodes.registerType('openai-api-config', {
category: 'config',
defaults: {
name: { value: "openai-api-config" },
},
credentials: {
orgId: {value: '', required: true},
apiKey: {value: '', required: true}
},
color: "rgb(36, 165, 222)",
label: function() {
return this.name;
}
});
</script>
<script type="text/html" data-template-name="openai-api-config">
<div class="form-row">
<label for="node-config-input-name"><i class="fa fa-user"></i> Name</label>
<input type="text" id="node-config-input-name" placeholder="Name">
</div>
<div class="form-row">
<label for="node-config-input-orgId"><i class="fa fa-lock"></i> Organization</label>
<input type="text" id="node-config-input-orgId">
</div>
<div class="form-row">
<label for="node-config-input-apiKey"><i class="fa fa-lock"></i> API Key</label>
<input type="text" id="node-config-input-apiKey">
</div>
</script>