aotrautils 0.0.663 → 0.0.665

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 (20/10/2023-00:27:55)»*/
3
+ /*utils COMMONS library associated with aotra version : «1_29072022-2359 (20/10/2023-00:31:04)»*/
4
4
  /*-----------------------------------------------------------------------------*/
5
5
 
6
6
 
@@ -5072,8 +5072,18 @@ class OpenAIAPIClient{
5072
5072
  })
5073
5073
  .then(response => response.json())
5074
5074
  .then(data => {
5075
+
5076
+ if(data.error){
5077
+ // TRACE
5078
+ console.error("Error:", error);
5079
+ reject(""+error);
5080
+ return;
5081
+ }
5082
+
5075
5083
  // DBG
5076
- console.log("data :",data);
5084
+ console.log("~~~~~~~~~~~data :",data);
5085
+
5086
+ ////
5077
5087
 
5078
5088
  const assistantReply = data.choices[0].message.content;
5079
5089
  resolve(assistantReply);
@@ -5121,7 +5131,7 @@ AOTRAUTILS_LIB_IS_LOADED=true;
5121
5131
 
5122
5132
 
5123
5133
 
5124
- /*utils CLIENT library associated with aotra version : «1_29072022-2359 (20/10/2023-00:27:55)»*/
5134
+ /*utils CLIENT library associated with aotra version : «1_29072022-2359 (20/10/2023-00:31:04)»*/
5125
5135
  /*-----------------------------------------------------------------------------*/
5126
5136
  /* ## Utility global methods in a browser (htmljs) client environment.
5127
5137
  *
@@ -13363,7 +13373,7 @@ createOritaMicroClient=function(url, port, isNode=false, staticMicroClientIdPara
13363
13373
 
13364
13374
 
13365
13375
 
13366
- /*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (20/10/2023-00:27:55)»*/
13376
+ /*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (20/10/2023-00:31:04)»*/
13367
13377
  /*-----------------------------------------------------------------------------*/
13368
13378
 
13369
13379
 
@@ -14602,7 +14612,7 @@ function rayVsUnitSphereClosestPoint(p, r) {
14602
14612
  // MUST REMAIN AT THE END OF THIS LIBRARY FILE !
14603
14613
 
14604
14614
  AOTRAUTILS_GEOMETRY_LIB_IS_LOADED=true;
14605
- /*utils SERVER library associated with aotra version : «1_29072022-2359 (20/10/2023-00:27:55)»*/
14615
+ /*utils SERVER library associated with aotra version : «1_29072022-2359 (20/10/2023-00:31:04)»*/
14606
14616
  /*-----------------------------------------------------------------------------*/
14607
14617
 
14608
14618
 
aotrautils/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aotrautils",
3
- "version": "0.0.663",
3
+ "version": "0.0.665",
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)",