aotrautils 0.0.651 → 0.0.653

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 (19/10/2023-23:54:35)»*/
3
+ /*utils COMMONS library associated with aotra version : «1_29072022-2359 (20/10/2023-00:02:31)»*/
4
4
  /*-----------------------------------------------------------------------------*/
5
5
 
6
6
 
@@ -5035,11 +5035,14 @@ class OpenAIAPIClient{
5035
5035
 
5036
5036
  construct(modelName, apiURL, agentRole, prompt){
5037
5037
 
5038
+ //DBG
5039
+ lognow(">>>>>>>>>>>>>>>>!!!!!!apiURL:",apiURL);
5040
+
5041
+
5038
5042
  this.modelName=modelName;
5039
5043
  this.apiURL=apiURL;
5040
5044
  this.agentRole=agentRole;
5041
5045
  this.prompt=prompt;
5042
-
5043
5046
  }
5044
5047
 
5045
5048
  getAnswer(AIAPIKey, additionalPrompt){
@@ -5052,6 +5055,7 @@ class OpenAIAPIClient{
5052
5055
 
5053
5056
  //DBG
5054
5057
  lognow("!!!!!!self.apiURL:",self.apiURL);
5058
+
5055
5059
  /*
5056
5060
  const result=()=>{
5057
5061
  const p=new Promise((resolve,reject)=>{
@@ -5094,6 +5098,10 @@ class OpenAIAPIClient{
5094
5098
 
5095
5099
  // Nodejs compatibility :
5096
5100
  getOpenAIAPIClient=(modelName, apiURL, agentRole, prompt)=>{
5101
+
5102
+ // DBG
5103
+ lognow(`TEST : ${modelName}, ${apiURL}, ${agentRole}, ${prompt}.`)
5104
+
5097
5105
  return new OpenAIAPIClient(modelName, apiURL, agentRole, prompt);
5098
5106
  };
5099
5107
 
@@ -5109,7 +5117,7 @@ AOTRAUTILS_LIB_IS_LOADED=true;
5109
5117
 
5110
5118
 
5111
5119
 
5112
- /*utils CLIENT library associated with aotra version : «1_29072022-2359 (19/10/2023-23:54:35)»*/
5120
+ /*utils CLIENT library associated with aotra version : «1_29072022-2359 (20/10/2023-00:02:31)»*/
5113
5121
  /*-----------------------------------------------------------------------------*/
5114
5122
  /* ## Utility global methods in a browser (htmljs) client environment.
5115
5123
  *
@@ -13351,7 +13359,7 @@ createOritaMicroClient=function(url, port, isNode=false, staticMicroClientIdPara
13351
13359
 
13352
13360
 
13353
13361
 
13354
- /*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (19/10/2023-23:54:35)»*/
13362
+ /*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (20/10/2023-00:02:31)»*/
13355
13363
  /*-----------------------------------------------------------------------------*/
13356
13364
 
13357
13365
 
@@ -14590,7 +14598,7 @@ function rayVsUnitSphereClosestPoint(p, r) {
14590
14598
  // MUST REMAIN AT THE END OF THIS LIBRARY FILE !
14591
14599
 
14592
14600
  AOTRAUTILS_GEOMETRY_LIB_IS_LOADED=true;
14593
- /*utils SERVER library associated with aotra version : «1_29072022-2359 (19/10/2023-23:54:35)»*/
14601
+ /*utils SERVER library associated with aotra version : «1_29072022-2359 (20/10/2023-00:02:31)»*/
14594
14602
  /*-----------------------------------------------------------------------------*/
14595
14603
 
14596
14604
 
aotrautils/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aotrautils",
3
- "version": "0.0.651",
3
+ "version": "0.0.653",
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)",