allanbunch / node-red-openai-api

Build low-code, advanced AI applications and workflows using **any** OpenAI API-compatible framework.
https://www.npmjs.com/package/@inductiv/node-red-openai-api
MIT License
31 stars 5 forks source link
ai artificial-intelligence javascript llm low-code node-red node-red-contrib nodejs ollama open-source openai openai-api slm

@inductiv/node-red-openai-api

NPM Version GitHub Release Date GitHub Issues or Pull Requests GitHub Repo stars

This library provides convenient access to the OpenAI Node API Library from Node-RED.

node-red-openai-api-node


Node-RED OpenAI API is a versatile and configurable Node-RED node designed for seamless integration with any OpenAI API compatible platform. This node empowers innovators and developers to effortlessly connect and orchestrate complex AI and IoT workflows, leveraging Node-RED's sophisticated ecosystem. Ideal for enhancing IoT operations with advanced AI capabilities, this node serves as your gateway to applying the latest AI technology in an IoT context, facilitating innovative applications across diverse environments.

Installation

Via Node-RED Palette Manager

@inductiv/node-red-openai-api

Via NPM

cd $HOME/.node-red # or the location of your Node-RED configuration directory.
npm i @inductiv/node-red-openai-api

Usage

After installation, find your node in the AI palette category labeled "OpenAI API". Here's how you can start integrating AI into your IoT projects:

  1. Configure the node with your AI platform's API key (if required).
  2. Send OpenAI documented API service configuration paramaters to the node using the default msg.payload property, or confiure your desired incoming object property reference on the node itself.
  3. Explore the examples directory for sample implementations.

Core Features

Release Notes (v1.6.0)

What's New in Version 1.x

Version 1.0 of the node-red-openai-api node brings significant enhancements and new possibilities, including:

Important Notice Regarding Compatibility

I recommend reviewing existing flows and testing them with this new version in a development environment before updating to ensure a smooth transition. This will help you take full advantage of the enhanced features while managing any necessary adjustments in your existing applications.

OpenAI API Compatible Servers

Node-RED OpenAI API Works with your favorite OpenAI API compatible servers, including:

Contribute

I value community contributions that help enhance this Node-RED node and expand its capabilities in AIoT applications. Whether you're fixing bugs, adding new features, or improving documentation, your help is welcome!

How to Contribute

  1. Fork the Repository: Start by forking the repository to your GitHub account.
  2. Clone Your Fork: Clone your fork to your local machine for development.
  3. Create a Feature Branch: Create a branch in your forked repository where you can make your changes.
  4. Commit Your Changes: Make your changes in your feature branch and commit them with clear, descriptive messages.
  5. Push to Your Fork: Push your changes to your fork on GitHub.
  6. Submit a Pull Request: Go to the original repository and submit a pull request from your feature branch. Please provide a clear description of the changes and reference any related issues.

Guidelines

Community and Support

Engage with the Node-RED OpenAI API community to share your experiences, get support, and discuss your ideas. Whether you're using the node or contributing to its development, we're here to help and look forward to your feedback and contributions.

Thank you for being part of our innovative community!

License

This project is licensed under the MIT License.

Thank you for being part of the Node-RED community!