aotrautils 0.0.709 → 0.0.710
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.
- aotrautils/aotrautils.build.js +5 -51
- aotrautils/package.json +1 -1
aotrautils/aotrautils.build.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
-
/*utils COMMONS library associated with aotra version : «1_29072022-2359 (
|
|
3
|
+
/*utils COMMONS library associated with aotra version : «1_29072022-2359 (22/10/2023-01:09:34)»*/
|
|
4
4
|
/*-----------------------------------------------------------------------------*/
|
|
5
5
|
|
|
6
6
|
|
|
@@ -5121,53 +5121,7 @@ class OpenAIAPIClient{
|
|
|
5121
5121
|
}
|
|
5122
5122
|
|
|
5123
5123
|
|
|
5124
|
-
|
|
5125
|
-
//
|
|
5126
|
-
// const self=this;
|
|
5127
|
-
// return await fetch(self.apiURL, {
|
|
5128
|
-
// method: "POST",
|
|
5129
|
-
// headers: {
|
|
5130
|
-
// "Authorization": "Bearer "+AIAPIKey,
|
|
5131
|
-
// "Content-Type": "application/json",
|
|
5132
|
-
// },
|
|
5133
|
-
// body: JSON.stringify({
|
|
5134
|
-
// model:self.modelName,
|
|
5135
|
-
// messages,
|
|
5136
|
-
// }),
|
|
5137
|
-
// })
|
|
5138
|
-
// // STRANGE : DOES NOT WORK !!:
|
|
5139
|
-
// //.then(response => response.json())
|
|
5140
|
-
// // STRANGE : DOES WORK :
|
|
5141
|
-
// .then(response => {
|
|
5142
|
-
//
|
|
5143
|
-
// // DBG
|
|
5144
|
-
// console.log("~~~~~~~~~~~response :",response);
|
|
5145
|
-
//
|
|
5146
|
-
// return response.json();
|
|
5147
|
-
// })
|
|
5148
|
-
// .then(data => {
|
|
5149
|
-
//
|
|
5150
|
-
// if(data.error){
|
|
5151
|
-
// const error=data.error;
|
|
5152
|
-
// // TRACE
|
|
5153
|
-
// console.error("Error:", error);
|
|
5154
|
-
// throw new Error(""+error);
|
|
5155
|
-
// return;
|
|
5156
|
-
// }
|
|
5157
|
-
//
|
|
5158
|
-
// // DBG
|
|
5159
|
-
// console.log("~~~~~~~~~~~data :",data);
|
|
5160
|
-
//
|
|
5161
|
-
// const assistantReply = data.choices[0].message.content;
|
|
5162
|
-
// return assistantReply;
|
|
5163
|
-
// })
|
|
5164
|
-
// .catch(error => {
|
|
5165
|
-
// // TRACE
|
|
5166
|
-
// console.error("Error:", error);
|
|
5167
|
-
// throw new Error(""+error);
|
|
5168
|
-
// });
|
|
5169
|
-
//
|
|
5170
|
-
// }
|
|
5124
|
+
|
|
5171
5125
|
|
|
5172
5126
|
}
|
|
5173
5127
|
|
|
@@ -5189,7 +5143,7 @@ AOTRAUTILS_LIB_IS_LOADED=true;
|
|
|
5189
5143
|
|
|
5190
5144
|
|
|
5191
5145
|
|
|
5192
|
-
/*utils CLIENT library associated with aotra version : «1_29072022-2359 (
|
|
5146
|
+
/*utils CLIENT library associated with aotra version : «1_29072022-2359 (22/10/2023-01:09:34)»*/
|
|
5193
5147
|
/*-----------------------------------------------------------------------------*/
|
|
5194
5148
|
/* ## Utility global methods in a browser (htmljs) client environment.
|
|
5195
5149
|
*
|
|
@@ -13431,7 +13385,7 @@ createOritaMicroClient=function(url, port, isNode=false, staticMicroClientIdPara
|
|
|
13431
13385
|
|
|
13432
13386
|
|
|
13433
13387
|
|
|
13434
|
-
/*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (
|
|
13388
|
+
/*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (22/10/2023-01:09:34)»*/
|
|
13435
13389
|
/*-----------------------------------------------------------------------------*/
|
|
13436
13390
|
|
|
13437
13391
|
|
|
@@ -14670,7 +14624,7 @@ function rayVsUnitSphereClosestPoint(p, r) {
|
|
|
14670
14624
|
// MUST REMAIN AT THE END OF THIS LIBRARY FILE !
|
|
14671
14625
|
|
|
14672
14626
|
AOTRAUTILS_GEOMETRY_LIB_IS_LOADED=true;
|
|
14673
|
-
/*utils SERVER library associated with aotra version : «1_29072022-2359 (
|
|
14627
|
+
/*utils SERVER library associated with aotra version : «1_29072022-2359 (22/10/2023-01:09:34)»*/
|
|
14674
14628
|
/*-----------------------------------------------------------------------------*/
|
|
14675
14629
|
|
|
14676
14630
|
|
aotrautils/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aotrautils",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.710",
|
|
4
4
|
"main": "aotrautils.build.js",
|
|
5
5
|
"description": "A library for vanilla javascript utils (client-side) used in aotra javascript CMS",
|
|
6
6
|
"author": "Jeremie Ratomposon <info@alqemia.com> (https://alqemia.com)",
|