aotrautils-srv 0.0.1373 → 0.0.1375

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:23:59)»*/
3
+ /*utils COMMONS library associated with aotra version : «1_29072022-2359 (15/04/2025-22:35:32)»*/
4
4
  /*-----------------------------------------------------------------------------*/
5
5
 
6
6
 
@@ -4898,7 +4898,7 @@ AOTRAUTILS_LIB_IS_LOADED=true;
4898
4898
 
4899
4899
 
4900
4900
 
4901
- /*utils AI library associated with aotra version : «1_29072022-2359 (15/04/2025-18:23:59)»*/
4901
+ /*utils AI library associated with aotra version : «1_29072022-2359 (15/04/2025-22:35:32)»*/
4902
4902
  /*-----------------------------------------------------------------------------*/
4903
4903
 
4904
4904
 
@@ -5016,7 +5016,8 @@ class OpenAIAPIClient{
5016
5016
 
5017
5017
  resolve(assistantReply);
5018
5018
  }).catch(errorObj=>{
5019
- const error=errorObj.error, httpStatus=errorObj.httpStatus;
5019
+ const error=errorObj.error;
5020
+ const httpStatus=errorObj.httpStatus;
5020
5021
  // TRACE
5021
5022
  console.error("Error:", error);
5022
5023
  reject(error);
@@ -5043,7 +5044,7 @@ getOpenAIAPIClient=(modelName, apiURL, agentRole, defaultPrompt)=>{
5043
5044
 
5044
5045
 
5045
5046
 
5046
- /*utils SERVER library associated with aotra version : «1_29072022-2359 (15/04/2025-18:23:59)»*/
5047
+ /*utils SERVER library associated with aotra version : «1_29072022-2359 (15/04/2025-22:35:32)»*/
5047
5048
  /*-----------------------------------------------------------------------------*/
5048
5049
 
5049
5050
 
@@ -6819,14 +6820,14 @@ performHTTPRequest=function(completeURL,httpMethod="GET",headers={},requestBodyO
6819
6820
 
6820
6821
  // CAUTION : .request(...) => statusCode, .fetch(...) => status (performHTTPRequest(...) uses fetch(...))
6821
6822
  const status=data.status;
6822
- if(status!=200 && data.error){
6823
- // const error=nonull(data.error, data.detail);
6824
- const error=data.error;
6825
- // TRACE
6826
- console.error("Error:", error);
6827
- reject({error:""+error, httpStatus:status});
6828
- return;
6829
- }
6823
+ // if(status!=200 && data.error){
6824
+ // // const error=nonull(data.error, data.detail);
6825
+ // const error=data.error;
6826
+ // // TRACE
6827
+ // console.error("Error:", error);
6828
+ // reject({error:""+error, httpStatus:status});
6829
+ // return;
6830
+ // }
6830
6831
 
6831
6832
  // DBG
6832
6833
  console.log("~~~~~~~~~~~data :",data);
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aotrautils-srv",
3
- "version": "0.0.1373",
3
+ "version": "0.0.1375",
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)",