flowfuse / node-red-function-gpt Goto Github PK
View Code? Open in Web Editor NEWA Node-RED node that adds "Ask ChatGPT" option to a duplicate of the built-in function node.
License: Apache License 2.0
A Node-RED node that adds "Ask ChatGPT" option to a duplicate of the built-in function node.
License: Apache License 2.0
Currently, when you add a new "function-gpt" node you need to select the ChatGTP Config node and click "Deploy" before you can ask it a question.
Our ChatGPT interaction operates server-side (to protect your API key), so Node-RED needs that in the runtime first, before a call to ChatGPT can be made.
Ideally, we'd be smarter here and pass client-side creds along with the call such that we can use any changes made by the user at the time of the call.
I have provided an initial effort estimate
First of all: this Node is an excellent idea, KUDOS!
I wanted to try it immediately as it would be an excellent help to our customers, electricians not necessarily skilled in programming.
I have installed the node and configured the OpenAI API key. Not sure what I should put in the organization field, for now, I've set it to 'Personal'. And deployed.
However the 'Ask ChatGPT' button always disabled remains disabled.
No response
Install and configure as described.
Hi , im not sure if this is the right place to ask , but i think its great to have a node which integrates with Open AI to write a custom UI template for NR dashboard 2.0 , Im not sure if there is currently any work around for this , but i think this is a great features if AI could write a custom UI template using NR , what are your thoughts ? Thanks
on a side note , the current function GPT is great , can we integrate it with GPT 4 as well ?
I have provided an initial effort estimate
I've just installed this node on my own NodeRed instance, not FlowForge (maybe it's the problem ?)
API key + OrgID configured (Keys used in other services so sure they're valid)
Model = code-davinci-002 or gpt-3.5-turbo
Click on "Ask ChatGPT" immediatly leads to a popup "common.notification.error"
No response
No response
Each time a new prompt is provided by the Node-RED user, we send a fresh conversation to OpenAI, meaning that knowledge of previously asked questions are not retained.
Storing some context of the history of conversation would allow iterative edits on the content provided by ChatGPT.
I have provided an initial effort estimate
I propose the ability to select part or all of the code in the function and add a few buttons like...
I have provided an initial effort estimate
Currently, the response from the API populates the entire active tab contents, overwriting anything already present. It would be nice to have a toggle option alongside the "Ask ChatGPT" button that permits the response to "insert", rather than replace. This should insert at the position of the active cursor, or at least, the last place the cursor was selected in that text box, given that browser focus will be in the CHatGT text input, or on the "Ask ChatGPT" button.
I have provided an initial effort estimate
I suggest:
/**
* This code is derived from the core Node-RED Function node that is
* copyright OpenJS Foundation and licensed under the Apache License, Version 2.0
**/
I would also add a similar note to the bottom of README.md
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.