UNPKG

node-red-contrib-dotnsf-gpt35

Version:
32 lines (29 loc) 1.04 kB
<script type="text/javascript"> RED.nodes.registerType( 'GPT 3.5', { category: 'function', color: '#AAAA66', defaults: { name: { value: '' }, apikey: { value: '' } }, inputs: 1, outputs: 1, icon: "font-awesome/fa-graduation-cap", label: function(){ return this.name || "GPT 3.5"; } }); </script> <script type="text/x-red" data-template-name="GPT 3.5"> <div class="form-row"> <label for="node-input-name"><i class="icon-tag"></i> Name</label> <input type="text" id="node-input-name" placeholder="Name"/> <br/> <label for="node-input-apikey"><i class="icon-tag"></i> API Key</label> <input type="text" id="node-input-apikey" placeholder="API Key"/> </div> </script> <script type="text/x-red" data-help-name="GPT 3.5"> <p>GPT 3.5 based query node.</p> <p>You need to edit "API Key" field with your own API Key, which can be generated <a target="_blank" href="https://beta.openai.com/account/api-keys">here</a>.</p> </script>