aotrautils 0.0.1367 → 0.0.1369

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 (15/04/2025-18:21:56)»*/
3
+ /*utils COMMONS library associated with aotra version : «1_29072022-2359 (15/04/2025-22:35:14)»*/
4
4
  /*-----------------------------------------------------------------------------*/
5
5
 
6
6
 
@@ -4898,7 +4898,7 @@ AOTRAUTILS_LIB_IS_LOADED=true;
4898
4898
 
4899
4899
 
4900
4900
 
4901
- /*utils CLIENT library associated with aotra version : «1_29072022-2359 (15/04/2025-18:21:56)»*/
4901
+ /*utils CLIENT library associated with aotra version : «1_29072022-2359 (15/04/2025-22:35:14)»*/
4902
4902
  /*-----------------------------------------------------------------------------*/
4903
4903
  /* ## Utility global methods in a browser (htmljs) client environment.
4904
4904
  *
@@ -13470,7 +13470,7 @@ getAORTACClient=function(clientId=getUUID(), serverNodeOrigin="ws://127.0.0.1:40
13470
13470
 
13471
13471
 
13472
13472
 
13473
- /*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (15/04/2025-18:21:56)»*/
13473
+ /*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (15/04/2025-22:35:14)»*/
13474
13474
  /*-----------------------------------------------------------------------------*/
13475
13475
 
13476
13476
 
@@ -14709,7 +14709,7 @@ function rayVsUnitSphereClosestPoint(p, r) {
14709
14709
  // MUST REMAIN AT THE END OF THIS LIBRARY FILE !
14710
14710
 
14711
14711
  AOTRAUTILS_GEOMETRY_LIB_IS_LOADED=true;
14712
- /*utils AI library associated with aotra version : «1_29072022-2359 (15/04/2025-18:21:56)»*/
14712
+ /*utils AI library associated with aotra version : «1_29072022-2359 (15/04/2025-22:35:14)»*/
14713
14713
  /*-----------------------------------------------------------------------------*/
14714
14714
 
14715
14715
 
@@ -14827,7 +14827,8 @@ class OpenAIAPIClient{
14827
14827
 
14828
14828
  resolve(assistantReply);
14829
14829
  }).catch(errorObj=>{
14830
- const error=errorObj.error, httpStatus=errorObj.httpStatus;
14830
+ const error=errorObj.error;
14831
+ const httpStatus=errorObj.httpStatus;
14831
14832
  // TRACE
14832
14833
  console.error("Error:", error);
14833
14834
  reject(error);
@@ -14854,7 +14855,7 @@ getOpenAIAPIClient=(modelName, apiURL, agentRole, defaultPrompt)=>{
14854
14855
 
14855
14856
 
14856
14857
 
14857
- /*utils SERVER library associated with aotra version : «1_29072022-2359 (15/04/2025-18:21:56)»*/
14858
+ /*utils SERVER library associated with aotra version : «1_29072022-2359 (15/04/2025-22:35:14)»*/
14858
14859
  /*-----------------------------------------------------------------------------*/
14859
14860
 
14860
14861
 
@@ -16630,14 +16631,14 @@ performHTTPRequest=function(completeURL,httpMethod="GET",headers={},requestBodyO
16630
16631
 
16631
16632
  // CAUTION : .request(...) => statusCode, .fetch(...) => status (performHTTPRequest(...) uses fetch(...))
16632
16633
  const status=data.status;
16633
- if(status!=200 && data.error){
16634
- // const error=nonull(data.error, data.detail);
16635
- const error=data.error;
16636
- // TRACE
16637
- console.error("Error:", error);
16638
- reject({error:""+error, httpStatus:status});
16639
- return;
16640
- }
16634
+ // if(status!=200 && data.error){
16635
+ // // const error=nonull(data.error, data.detail);
16636
+ // const error=data.error;
16637
+ // // TRACE
16638
+ // console.error("Error:", error);
16639
+ // reject({error:""+error, httpStatus:status});
16640
+ // return;
16641
+ // }
16641
16642
 
16642
16643
  // DBG
16643
16644
  console.log("~~~~~~~~~~~data :",data);
aotrautils/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aotrautils",
3
- "version": "0.0.1367",
3
+ "version": "0.0.1369",
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)",