@inductiv/node-red-openai-api 0.2.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.json +13 -0
- package/.prettierrc +4 -0
- package/README.md +40 -0
- package/lib.js +474 -476
- package/locales/de-DE/node.json +4 -3
- package/locales/en-US/node.json +4 -3
- package/locales/ja/node.json +4 -3
- package/locales/zh-CN/node.json +4 -3
- package/node.html +11 -8
- package/node.js +79 -228
- package/package.json +6 -2
package/.eslintrc.json
ADDED
package/.prettierrc
ADDED
package/README.md
CHANGED
|
@@ -17,6 +17,31 @@ _@inductiv/node-red-openai-api_ offers a versatile and configurable Node-RED nod
|
|
|
17
17
|
|
|
18
18
|
Ideal for developers, researchers, and innovators, this node is your tool for unlocking the full potential of AI in your projects.
|
|
19
19
|
|
|
20
|
+
## Custom API Service Host URL Configuration
|
|
21
|
+
|
|
22
|
+
New in version 0.3.0: You can now set a custom API service host base URL. This powerful feature extends the package's capabilities, allowing you to interface with any API that adheres to the OpenAI REST API request and response signatures and payloads.
|
|
23
|
+
|
|
24
|
+
### Benefits
|
|
25
|
+
|
|
26
|
+
- **Versatility**: Seamlessly connect to a broader range of AI services, beyond the default OpenAI offerings, including local model solutions like [Text Generation Web UI](https://github.com/oobabooga/text-generation-webui).
|
|
27
|
+
- **Customization**: Tailor your Node-RED node to interact with custom or specialized AI services, offering greater control and flexibility in your AI integrations.
|
|
28
|
+
- **Expanded Scope**: Ideal for unique use cases where standard OpenAI services may not suffice, or when working within specialized AI environments.
|
|
29
|
+
|
|
30
|
+
### How to Use
|
|
31
|
+
|
|
32
|
+
To utilize this feature, simply specify the custom API service host base URL in the node configuration. This enhancement is built upon the existing framework, ensuring a smooth and intuitive user experience.
|
|
33
|
+
|
|
34
|
+
#### Service HOst Configuration Examples
|
|
35
|
+
|
|
36
|
+
<img width="371" alt="service host node config" src="https://github.com/allanbunch/node-red-openai-api/assets/4503640/256362c5-6e78-44c7-af6e-12d5830cdf32">
|
|
37
|
+
|
|
38
|
+
<img width="373" alt="OpenAI service host node config" src="https://github.com/allanbunch/node-red-openai-api/assets/4503640/a6e9d4b9-836a-4d0e-8349-4eceda72cb72">
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
### Migrating from Previous Versions
|
|
42
|
+
|
|
43
|
+
This package's configuration node is now named "Service Host" to serve as a more generalized representation, considering the node's expanded capability scope. This node's previous versions used a config node named "OpenAI Auth" which is no longer referenced starting with this version (0.3.0). Be sure to update your existing node configurations accordingly.
|
|
44
|
+
|
|
20
45
|
## Table of Contents
|
|
21
46
|
|
|
22
47
|
- [Installation](#installation)
|
|
@@ -55,6 +80,21 @@ Node contains inutitive inline help with links to OpenAI's official API document
|
|
|
55
80
|
|
|
56
81
|
<img width="619" alt="inductiv-node-red-openai-api-node-config" src="https://github.com/allanbunch/node-red-openai-api/assets/4503640/15ee5b75-2e29-4806-b427-8e6873f3fb96">
|
|
57
82
|
|
|
83
|
+
## Community Contributions and Discussions
|
|
84
|
+
|
|
85
|
+
I very much appreciate community input and invite everyone to shape the future of this project. Whether you have ideas, questions, or simply want to show off your implementations, this project's GitHub Discussions page is the perfect place to connect and contribute.
|
|
86
|
+
|
|
87
|
+
### Engage in Various Discussions
|
|
88
|
+
|
|
89
|
+
- **Announcements**: Stay updated with the latest project news.
|
|
90
|
+
- **General**: Share thoughts or seek advice on broader topics.
|
|
91
|
+
- **Ideas**: Propose new features or improvements.
|
|
92
|
+
- **Polls**: Participate in polls to influence project decisions.
|
|
93
|
+
- **Q&A**: Get answers to your questions and share your expertise.
|
|
94
|
+
- **Show and Tell**: Showcase your creative implementations and inspire others.
|
|
95
|
+
|
|
96
|
+
Join the conversation [here](https://github.com/allanbunch/node-red-openai-api/discussions) and let's build a vibrant and collaborative community together!
|
|
97
|
+
|
|
58
98
|
## License
|
|
59
99
|
|
|
60
100
|
[MIT](./LICENSE)
|