aotrautils 0.0.923 → 0.0.925

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 (07/04/2024-16:29:56)»*/
3
+ /*utils COMMONS library associated with aotra version : «1_29072022-2359 (07/04/2024-16:54:11)»*/
4
4
  /*-----------------------------------------------------------------------------*/
5
5
 
6
6
 
@@ -5184,7 +5184,7 @@ class OpenAIAPIClient{
5184
5184
  this.agentRole=agentRole;
5185
5185
  this.prompt=prompt;
5186
5186
  }
5187
-
5187
+
5188
5188
  async getAnswer(AIAPIKey, additionalPrompt){
5189
5189
 
5190
5190
  const self=this;
@@ -5232,7 +5232,7 @@ class OpenAIAPIClient{
5232
5232
  const error=data.error;
5233
5233
  // TRACE
5234
5234
  console.error("Error:", error);
5235
- reject(`${error}`);
5235
+ reject(new Error(`${error}`));
5236
5236
  }
5237
5237
 
5238
5238
  const assistantReply = data.choices[0].message.content;
@@ -5317,7 +5317,7 @@ AOTRAUTILS_LIB_IS_LOADED=true;
5317
5317
 
5318
5318
 
5319
5319
 
5320
- /*utils CLIENT library associated with aotra version : «1_29072022-2359 (07/04/2024-16:29:56)»*/
5320
+ /*utils CLIENT library associated with aotra version : «1_29072022-2359 (07/04/2024-16:54:11)»*/
5321
5321
  /*-----------------------------------------------------------------------------*/
5322
5322
  /* ## Utility global methods in a browser (htmljs) client environment.
5323
5323
  *
@@ -13530,7 +13530,7 @@ createOritaMicroClient=function(url, port, isNode=false, staticMicroClientIdPara
13530
13530
 
13531
13531
 
13532
13532
 
13533
- /*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (07/04/2024-16:29:56)»*/
13533
+ /*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (07/04/2024-16:54:11)»*/
13534
13534
  /*-----------------------------------------------------------------------------*/
13535
13535
 
13536
13536
 
@@ -14769,7 +14769,7 @@ function rayVsUnitSphereClosestPoint(p, r) {
14769
14769
  // MUST REMAIN AT THE END OF THIS LIBRARY FILE !
14770
14770
 
14771
14771
  AOTRAUTILS_GEOMETRY_LIB_IS_LOADED=true;
14772
- /*utils SERVER library associated with aotra version : «1_29072022-2359 (07/04/2024-16:29:56)»*/
14772
+ /*utils SERVER library associated with aotra version : «1_29072022-2359 (07/04/2024-16:54:11)»*/
14773
14773
  /*-----------------------------------------------------------------------------*/
14774
14774
 
14775
14775
 
aotrautils/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aotrautils",
3
- "version": "0.0.923",
3
+ "version": "0.0.925",
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)",