aotrautils 0.0.915 → 0.0.916
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.
- aotrautils/aotrautils.build.js +15 -12
- aotrautils/package.json +1 -1
aotrautils/aotrautils.build.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
-
/*utils COMMONS library associated with aotra version : «1_29072022-2359 (07/04/2024-
|
|
3
|
+
/*utils COMMONS library associated with aotra version : «1_29072022-2359 (07/04/2024-15:45:51)»*/
|
|
4
4
|
/*-----------------------------------------------------------------------------*/
|
|
5
5
|
|
|
6
6
|
|
|
@@ -5184,7 +5184,7 @@ class OpenAIAPIClient{
|
|
|
5184
5184
|
this.agentRole=agentRole;
|
|
5185
5185
|
this.prompt=prompt;
|
|
5186
5186
|
}
|
|
5187
|
-
|
|
5187
|
+
|
|
5188
5188
|
async getAnswer(AIAPIKey, additionalPrompt){
|
|
5189
5189
|
|
|
5190
5190
|
const self=this;
|
|
@@ -5195,9 +5195,10 @@ class OpenAIAPIClient{
|
|
|
5195
5195
|
|
|
5196
5196
|
//DBG
|
|
5197
5197
|
lognow("------------self.apiURL:",self.apiURL);
|
|
5198
|
-
|
|
5199
|
-
|
|
5200
|
-
|
|
5198
|
+
lognow("------------! messages :",messages);
|
|
5199
|
+
|
|
5200
|
+
|
|
5201
|
+
const result=this.launchRequest(AIAPIKey, messages);
|
|
5201
5202
|
|
|
5202
5203
|
// DBG
|
|
5203
5204
|
console.log("! RESULT text :",result);
|
|
@@ -5206,10 +5207,14 @@ class OpenAIAPIClient{
|
|
|
5206
5207
|
}
|
|
5207
5208
|
|
|
5208
5209
|
|
|
5209
|
-
|
|
5210
|
+
/*private*/launchRequest(AIAPIKey, messages){
|
|
5211
|
+
|
|
5212
|
+
// DBG
|
|
5213
|
+
lognow("! launchRequest messages :",messages);
|
|
5214
|
+
|
|
5210
5215
|
|
|
5211
5216
|
const self=this;
|
|
5212
|
-
|
|
5217
|
+
return new Promise((resolve,reject)=>{
|
|
5213
5218
|
|
|
5214
5219
|
fetch(self.apiURL, {
|
|
5215
5220
|
method: "POST",
|
|
@@ -5256,8 +5261,6 @@ class OpenAIAPIClient{
|
|
|
5256
5261
|
|
|
5257
5262
|
|
|
5258
5263
|
});
|
|
5259
|
-
|
|
5260
|
-
return p;
|
|
5261
5264
|
}
|
|
5262
5265
|
|
|
5263
5266
|
|
|
@@ -5283,7 +5286,7 @@ AOTRAUTILS_LIB_IS_LOADED=true;
|
|
|
5283
5286
|
|
|
5284
5287
|
|
|
5285
5288
|
|
|
5286
|
-
/*utils CLIENT library associated with aotra version : «1_29072022-2359 (07/04/2024-
|
|
5289
|
+
/*utils CLIENT library associated with aotra version : «1_29072022-2359 (07/04/2024-15:45:51)»*/
|
|
5287
5290
|
/*-----------------------------------------------------------------------------*/
|
|
5288
5291
|
/* ## Utility global methods in a browser (htmljs) client environment.
|
|
5289
5292
|
*
|
|
@@ -13496,7 +13499,7 @@ createOritaMicroClient=function(url, port, isNode=false, staticMicroClientIdPara
|
|
|
13496
13499
|
|
|
13497
13500
|
|
|
13498
13501
|
|
|
13499
|
-
/*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (07/04/2024-
|
|
13502
|
+
/*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (07/04/2024-15:45:51)»*/
|
|
13500
13503
|
/*-----------------------------------------------------------------------------*/
|
|
13501
13504
|
|
|
13502
13505
|
|
|
@@ -14735,7 +14738,7 @@ function rayVsUnitSphereClosestPoint(p, r) {
|
|
|
14735
14738
|
// MUST REMAIN AT THE END OF THIS LIBRARY FILE !
|
|
14736
14739
|
|
|
14737
14740
|
AOTRAUTILS_GEOMETRY_LIB_IS_LOADED=true;
|
|
14738
|
-
/*utils SERVER library associated with aotra version : «1_29072022-2359 (07/04/2024-
|
|
14741
|
+
/*utils SERVER library associated with aotra version : «1_29072022-2359 (07/04/2024-15:45:51)»*/
|
|
14739
14742
|
/*-----------------------------------------------------------------------------*/
|
|
14740
14743
|
|
|
14741
14744
|
|
aotrautils/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aotrautils",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.916",
|
|
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)",
|