@inductiv/node-red-openai-api 0.1.0 → 0.3.0
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 +35 -2
- package/examples/assistants.json +2 -2
- package/examples/audio.json +1 -1
- package/examples/chat.json +1 -1
- package/examples/embeddings.json +1 -1
- package/examples/files.json +1 -1
- package/examples/fine-tuning.json +1 -1
- package/examples/images.json +1 -1
- package/examples/messages.json +1 -1
- package/examples/models.json +1 -1
- package/examples/moderations.json +1 -1
- package/examples/runs.json +1 -1
- package/examples/threads.json +1 -1
- package/lib.js +475 -478
- 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 +15 -12
- package/node.js +80 -229
- package/package.json +4 -7
package/.eslintrc.json
ADDED
package/.prettierrc
ADDED
package/README.md
CHANGED
|
@@ -17,6 +17,24 @@ _@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
|
+
### Migrating from Previous Versions
|
|
35
|
+
|
|
36
|
+
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.
|
|
37
|
+
|
|
20
38
|
## Table of Contents
|
|
21
39
|
|
|
22
40
|
- [Installation](#installation)
|
|
@@ -41,9 +59,9 @@ npm i @inductiv/node-red-openai-api
|
|
|
41
59
|
|
|
42
60
|
## Usage
|
|
43
61
|
|
|
44
|
-
Find your _@inductiv/node-red-openai-api_ node in the **AI** palette category.
|
|
62
|
+
Find your _@inductiv/node-red-openai-api_ node in the **AI** palette category, labeled "OpenAI API.
|
|
45
63
|
|
|
46
|
-
<img width="122" alt="inductiv-node-red-openai-api-node" src="https://github.com/allanbunch/node-red-openai-api/assets/4503640/
|
|
64
|
+
<img width="122" alt="inductiv-node-red-openai-api-node" src="https://github.com/allanbunch/node-red-openai-api/assets/4503640/1ca1ef14-1839-4355-9f1e-ba4f94cfd2a6">
|
|
47
65
|
|
|
48
66
|
You'll find a set of example implementation flows in the [examples](./examples/) directory.
|
|
49
67
|
|
|
@@ -55,6 +73,21 @@ Node contains inutitive inline help with links to OpenAI's official API document
|
|
|
55
73
|
|
|
56
74
|
<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
75
|
|
|
76
|
+
## Community Contributions and Discussions
|
|
77
|
+
|
|
78
|
+
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.
|
|
79
|
+
|
|
80
|
+
### Engage in Various Discussions
|
|
81
|
+
|
|
82
|
+
- **Announcements**: Stay updated with the latest project news.
|
|
83
|
+
- **General**: Share thoughts or seek advice on broader topics.
|
|
84
|
+
- **Ideas**: Propose new features or improvements.
|
|
85
|
+
- **Polls**: Participate in polls to influence project decisions.
|
|
86
|
+
- **Q&A**: Get answers to your questions and share your expertise.
|
|
87
|
+
- **Show and Tell**: Showcase your creative implementations and inspire others.
|
|
88
|
+
|
|
89
|
+
Join the conversation [here](https://github.com/allanbunch/node-red-openai-api/discussions) and let's build a vibrant and collaborative community together!
|
|
90
|
+
|
|
58
91
|
## License
|
|
59
92
|
|
|
60
93
|
[MIT](./LICENSE)
|
package/examples/assistants.json
CHANGED
|
@@ -356,7 +356,7 @@
|
|
|
356
356
|
},
|
|
357
357
|
{
|
|
358
358
|
"id": "50dc0daeab93f1d7",
|
|
359
|
-
"type": "
|
|
359
|
+
"type": "OpenAI API",
|
|
360
360
|
"z": "78b174792ca9efaf",
|
|
361
361
|
"g": "6ada9879e91ef156",
|
|
362
362
|
"name": "upload files",
|
|
@@ -404,7 +404,7 @@
|
|
|
404
404
|
},
|
|
405
405
|
{
|
|
406
406
|
"id": "43d56c48fd18dd0b",
|
|
407
|
-
"type": "
|
|
407
|
+
"type": "OpenAI API",
|
|
408
408
|
"z": "78b174792ca9efaf",
|
|
409
409
|
"g": "a08cc5475a20cc70",
|
|
410
410
|
"name": "create assistant",
|
package/examples/audio.json
CHANGED
package/examples/chat.json
CHANGED
package/examples/embeddings.json
CHANGED
package/examples/files.json
CHANGED
package/examples/images.json
CHANGED
package/examples/messages.json
CHANGED
package/examples/models.json
CHANGED
package/examples/runs.json
CHANGED