
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
node-red-contrib-custom-chatgpt
Advanced tools
A Node-RED node that interacts with OpenAI machine learning models to generate text and image outputs like 'ChatGPT', 'DALL·E 2', and 'DALL·E 3'.
Supercharge your Node-RED flows with AI! Seamlessly integrate with OpenAI's powerful models like GPT-4o, DALL·E 2, and DALL·E 3 to unlock a world of creative possibilities. Create imaginative chatbots, automate content generation, or build AI-driven experiences. The power of AI is just a node away!
To start using node-red-contrib-custom-chatgpt
, you can install it through the built-in Node-RED Palette manager or using npm:
npm install node-red-contrib-custom-chatgpt
With these, you're ready to configure your node-red-contrib-custom-chatgpt
nodes.
With node-red-contrib-custom-chatgpt
, you have the power to select the behavior of the node by setting the Topic property value to gpt4o
, image
, turbo
, or gpt4
. You can control the node with a single required message property msg.payload
or dynamically set the behavior with incoming messages using read from msg.topic
.
When is set to read from msg.topic
if msg.topic
is left undefined then the message property msg.model
can be used to select any model.
For detailed information on the usage of these modes, please refer to the OpenAI API documentation.
When msg.topic
is set to gpt4o
:
[Required] msg.payload
should be a well-written prompt that provides enough information for the model to know what you want and how it should respond. Its success generally depends on the complexity of the task and quality of your prompt. A good rule of thumb is to think about how you would write a word problem for a middle schooler to solve.
[Optional] msg.history
should be an array of objects containing the conversation history. [Default:[]
]
When msg.topic
is set to image
:
[Required] msg.payload
should be a prompt of text description of the desired image.
[Optional] msg.size
should be a string of the desired image dimensions. [Default:256x256
]
[Optional] msg.format
should be a string of either b64_json
or url
. [Default:url
] (NOTE: b64_json
may be depreciated)
When msg.topic
is set to turbo
:
[Required] msg.payload
should be a well-written prompt that provides enough information for the model to know what you want and how it should respond. Its success generally depends on the complexity of the task and quality of your prompt.
[Optional] msg.history
should be an array of objects containing the conversation history. [Default:[]
]
When msg.topic
is set to gpt4
:
[Required] msg.payload
should be a well-written prompt that provides enough information for the model to know what you want and how it should respond. Its success generally depends on the complexity of the task and quality of your prompt.
[Optional] msg.history
should be an array of objects containing the conversation history. [Default:[]
]
When msg.topic
is set to dalle3
:
[Required] msg.payload
should be a prompt of text description of the desired image.
[Optional] msg.size
should be a string of the desired image dimensions. [Default:1024x1024
]
When msg.topic
is set to gpt-4o-mini
:
[Required] msg.payload
should be a well-written prompt that provides enough information for the model to know what you want and how it should respond. Its success generally depends on the complexity of the task and quality of your prompt.
[Optional] msg.history
should be an array of objects containing the conversation history. [Default:[]
]
The following optional inputs are supported - msg.max_tokens
, msg.suffix
, msg.n
, msg.temperature
, msg.top_p
, msg.presence_penalty
, msg.frequency_penalty
, msg.echo
, and msg.API_KEY
See the nodes built-in help tab for more information on how they are used.
We've provided several examples to help you understand the potential and versatility of node-red-contrib-custom-chatgpt
. From basic usages like image generation and text editing, to more advanced features like setting behaviors, using optional message properties, and automating Node-RED node creation.
[Old screenshot] Basic usage for image, completion, and edit.
[Old screenshot] More advanced usage with templates.
[Old screenshot] Usage of model gpt-3.5-turbo
and conversation history.
[New screenshot] Updated example using optional message properties and setting behavior Topic
in node edit dialog.
[New screenshot] Additional example demonstrating how to generate Node-RED nodes and import them directly into the editor automatically.
Encountered a bug or have an idea for a new feature? We'd love to hear from you! Feel free to submit an issue on our GitHub page.
Stay up-to-date with the latest changes by checking out our CHANGELOG.
This project is licensed under the MIT License - see the LICENSE file for details.
[1.3.6] - 2024-11-23
openai
to current version.FAQs
A Node-RED node that interacts with OpenAI machine learning models to generate text and image outputs like 'ChatGPT', 'DALL·E 2', and 'DALL·E 3'.
The npm package node-red-contrib-custom-chatgpt receives a total of 177 weekly downloads. As such, node-red-contrib-custom-chatgpt popularity was classified as not popular.
We found that node-red-contrib-custom-chatgpt demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.