@innovastudio/contentbox 1.6.98 → 1.6.99
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/readme.txt
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
ContentBox.js 5.8.
|
1
|
+
ContentBox.js 5.8.25
|
2
2
|
|
3
3
|
Documentation:
|
4
4
|
|
@@ -29,7 +29,7 @@ A. To try the HTML example:
|
|
29
29
|
|
30
30
|
> node server.js
|
31
31
|
|
32
|
-
|
32
|
+
4. Open from your browser:
|
33
33
|
|
34
34
|
http://localhost:8081/example.html
|
35
35
|
|
@@ -71,6 +71,32 @@ NOTE:
|
|
71
71
|
|
72
72
|
$OPENAI_API_KEY = 'YOUR_API_KEY';
|
73
73
|
|
74
|
+
3. Ensure that the sendCommandUrl parameter is set with the API endpoint for using the OpenAI API:
|
75
|
+
|
76
|
+
const builder = new ContentBuilder({
|
77
|
+
// ...
|
78
|
+
sendCommandUrl: '/sendcommand',
|
79
|
+
});
|
80
|
+
|
81
|
+
If you're using PHP:
|
82
|
+
|
83
|
+
const builder = new ContentBuilder({
|
84
|
+
// ...
|
85
|
+
sendCommandUrl: 'api/sendcommand.php',
|
86
|
+
});
|
87
|
+
|
88
|
+
Most examples in the package have this parameter configured, so you can run and test them.
|
89
|
+
Examples in React/Next.js and Laravel are also provided.
|
90
|
+
|
91
|
+
The JavaScript project example in this package uses Node.js for the API endpoint /sendcommand.
|
92
|
+
Please refer to the Node.js file:
|
93
|
+
|
94
|
+
server.js
|
95
|
+
|
96
|
+
For more information, please refer to the documentation:
|
97
|
+
|
98
|
+
https://demo.innovastudio.com/docs/AI-Assistant.pdf
|
99
|
+
|
74
100
|
- For speech recognition (if dictation is enabled), the browser's built-in
|
75
101
|
speech recognition is used. However, certain browsers may not support this feature.
|
76
102
|
We recommend using Deepgram for browser compatibility and accuracy.
|