Security News
Introducing the Socket Python SDK
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
node-red-contrib-custom-chatgpt4o
Advanced tools
A Node-RED node that interacts with OpenAI machine learning models to generate text and image outputs like 'ChatGPT-4o' and 'DALL·E 2'.
Supercharge your Node-RED flows with AI! Seamlessly integrate with OpenAI's powerful models like GPT-4, GPT-4o and DALL·E 2, and 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-chatgpt4o
, you can install it through the built-in Node-RED Palette manager or using npm:
npm install node-red-contrib-custom-chatgpt4o
With these, you're ready to configure your node-red-contrib-custom-chatgpt4o
nodes.
With node-red-contrib-custom-chatgpt4o
, you have the power to select the behavior of the node by setting the Topic property value to image
, edit
, turbo
, or gpt4
/ gpt4o
. 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
.
For detailed information on the usage of these modes, please refer to the OpenAI API documentation.
1. When msg.topic
is set to completion
:
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.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:b64_json
]
When msg.topic
is set to edit
:
[Required] msg.payload
should be a prompt of text to use as a starting point for the edit.
[Required] msg.last
should be a string of text to use as the input to be edited.
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
or 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.
[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
, msg.API_KEY
and msg.ORGANIZATION
. See the nodes built-in help tab for more information on how they are used.
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.
This project is licensed under the MIT License - see the LICENSE file for details.
FAQs
A Node-RED node that interacts with OpenAI machine learning models to generate text and image outputs like 'ChatGPT-4o' and 'DALL·E 2'.
We found that node-red-contrib-custom-chatgpt4o demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
Security News
Floating dependency ranges in npm can introduce instability and security risks into your project by allowing unverified or incompatible versions to be installed automatically, leading to unpredictable behavior and potential conflicts.
Security News
A new Rust RFC proposes "Trusted Publishing" for Crates.io, introducing short-lived access tokens via OIDC to improve security and reduce risks associated with long-lived API tokens.