aotrautils-srv 0.0.704 → 0.0.706

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 (21/10/2023-19:18:38)»*/
3
+ /*utils COMMONS library associated with aotra version : «1_29072022-2359 (22/10/2023-01:09:38)»*/
4
4
  /*-----------------------------------------------------------------------------*/
5
5
 
6
6
 
@@ -5121,53 +5121,7 @@ class OpenAIAPIClient{
5121
5121
  }
5122
5122
 
5123
5123
 
5124
- // async launchRequest(AIAPIKey, messages){
5125
- //
5126
- // const self=this;
5127
- // return await fetch(self.apiURL, {
5128
- // method: "POST",
5129
- // headers: {
5130
- // "Authorization": "Bearer "+AIAPIKey,
5131
- // "Content-Type": "application/json",
5132
- // },
5133
- // body: JSON.stringify({
5134
- // model:self.modelName,
5135
- // messages,
5136
- // }),
5137
- // })
5138
- // // STRANGE : DOES NOT WORK !!:
5139
- // //.then(response => response.json())
5140
- // // STRANGE : DOES WORK :
5141
- // .then(response => {
5142
- //
5143
- // // DBG
5144
- // console.log("~~~~~~~~~~~response :",response);
5145
- //
5146
- // return response.json();
5147
- // })
5148
- // .then(data => {
5149
- //
5150
- // if(data.error){
5151
- // const error=data.error;
5152
- // // TRACE
5153
- // console.error("Error:", error);
5154
- // throw new Error(""+error);
5155
- // return;
5156
- // }
5157
- //
5158
- // // DBG
5159
- // console.log("~~~~~~~~~~~data :",data);
5160
- //
5161
- // const assistantReply = data.choices[0].message.content;
5162
- // return assistantReply;
5163
- // })
5164
- // .catch(error => {
5165
- // // TRACE
5166
- // console.error("Error:", error);
5167
- // throw new Error(""+error);
5168
- // });
5169
- //
5170
- // }
5124
+
5171
5125
 
5172
5126
  }
5173
5127
 
@@ -5189,7 +5143,7 @@ AOTRAUTILS_LIB_IS_LOADED=true;
5189
5143
 
5190
5144
 
5191
5145
 
5192
- /*utils SERVER library associated with aotra version : «1_29072022-2359 (21/10/2023-19:18:38)»*/
5146
+ /*utils SERVER library associated with aotra version : «1_29072022-2359 (22/10/2023-01:09:38)»*/
5193
5147
  /*-----------------------------------------------------------------------------*/
5194
5148
 
5195
5149
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aotrautils-srv",
3
- "version": "0.0.704",
3
+ "version": "0.0.706",
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)",