@innovastudio/contentbuilder 1.5.99 → 1.5.101

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
- ContentBuilder.js 5.5.30
1
+ ContentBuilder.js 5.5.31
2
2
 
3
3
  Note: If you have Source Code package (Super license), please refer to:
4
4
 
@@ -72,20 +72,39 @@ C. To try the JavaScript project, install the dependencies and start the project
72
72
  NOTE:
73
73
 
74
74
  - To use the AI Assistant:
75
- 1. Obtain the OpenAI API key from https://openai.com.
75
+
76
+ 1. Obtain the API key from OpenAI or OpenRouter
77
+
78
+ https://openai.com
79
+
80
+ or
81
+
82
+ https://openrouter.ai
83
+
84
+ Use OpenRouter if you want to use various models.
85
+
76
86
  2. Update the .env file with your API key.
77
87
 
78
- OPENAI_API_KEY=YOUR_API_KEY
88
+ OPENAI_API_KEY=YOUR_OPENAI_API_KEY
79
89
 
80
- Alternatively, if you're using PHP, update the api/config.php file with your API key:
90
+ or
91
+
92
+ OPENROUTER_API_KEY=YOUR_API_KEY
93
+
94
+ Or if you're using PHP, update the api/config.php file with your API key:
81
95
 
82
- $OPENAI_API_KEY = 'YOUR_API_KEY';
96
+ $OPENAI_API_KEY = 'YOUR_API_KEY';
97
+
98
+ or
83
99
 
84
- 3. Ensure that the sendCommandUrl parameter is set with the API endpoint for using the OpenAI API:
100
+ $OPENROUTER_API_KEY = 'YOUR_API_KEY';
101
+
102
+ 3. Ensure that the sendCommandUrl parameter is set with the API endpoint:
85
103
 
86
104
  const builder = new ContentBuilder({
87
105
  // ...
88
106
  sendCommandUrl: '/sendcommand',
107
+ // sendCommandUrl: '/openrouter', // Using OpenRouter (https://openrouter.ai/)
89
108
  });
90
109
 
91
110
  If you're using PHP:
@@ -93,6 +112,7 @@ NOTE:
93
112
  const builder = new ContentBuilder({
94
113
  // ...
95
114
  sendCommandUrl: 'api/sendcommand.php',
115
+ // sendCommandUrl: '/api/openrouter.php', // Using OpenRouter (https://openrouter.ai/)
96
116
  });
97
117
 
98
118
  Most examples in the package have this parameter configured, so you can run and test them.