aotrautils-srv 0.0.647 → 0.0.649

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:39)»*/
3
+ /*utils COMMONS library associated with aotra version : «1_29072022-2359 (20/10/2023-00:02:40)»*/
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 SERVER library associated with aotra version : «1_29072022-2359 (19/10/2023-23:54:39)»*/
5120
+ /*utils SERVER library associated with aotra version : «1_29072022-2359 (20/10/2023-00:02:40)»*/
5113
5121
  /*-----------------------------------------------------------------------------*/
5114
5122
 
5115
5123
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aotrautils-srv",
3
- "version": "0.0.647",
3
+ "version": "0.0.649",
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)",