aotrautils-srv 0.0.627 → 0.0.628
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
-
/*utils COMMONS library associated with aotra version : «1_29072022-2359 (02/10/2023-20:
|
|
3
|
+
/*utils COMMONS library associated with aotra version : «1_29072022-2359 (02/10/2023-20:09:03)»*/
|
|
4
4
|
/*-----------------------------------------------------------------------------*/
|
|
5
5
|
|
|
6
6
|
|
|
@@ -5115,7 +5115,10 @@ class OpenAIAPIClient{
|
|
|
5115
5115
|
}
|
|
5116
5116
|
|
|
5117
5117
|
|
|
5118
|
-
|
|
5118
|
+
// Nodejs compatibility :
|
|
5119
|
+
getOpenAIAPIClient=(modelName, apiURL, agentRole, prompt)=>{
|
|
5120
|
+
return new OpenAIAPIClient(modelName, apiURL, agentRole, prompt);
|
|
5121
|
+
};
|
|
5119
5122
|
|
|
5120
5123
|
|
|
5121
5124
|
|
|
@@ -5126,12 +5129,10 @@ class OpenAIAPIClient{
|
|
|
5126
5129
|
AOTRAUTILS_LIB_IS_LOADED=true;
|
|
5127
5130
|
|
|
5128
5131
|
|
|
5129
|
-
|
|
5130
|
-
if(typeof(module)!=="undefined")
|
|
5131
|
-
module.exports = { OpenAIAPIClient : OpenAIAPIClient };
|
|
5132
|
+
|
|
5132
5133
|
|
|
5133
5134
|
|
|
5134
|
-
/*utils SERVER library associated with aotra version : «1_29072022-2359 (02/10/2023-20:
|
|
5135
|
+
/*utils SERVER library associated with aotra version : «1_29072022-2359 (02/10/2023-20:09:03)»*/
|
|
5135
5136
|
/*-----------------------------------------------------------------------------*/
|
|
5136
5137
|
|
|
5137
5138
|
|
aotrautils-srv/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aotrautils-srv",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.628",
|
|
4
4
|
"main": "aotrautils-srv.build.js",
|
|
5
5
|
"description": "A library for vanilla javascript utils (server-side) used in aotra javascript CMS",
|
|
6
6
|
"author": "Jeremie Ratomposon <info@alqemia.com> (https://alqemia.com)",
|