aotrautils 0.0.694 → 0.0.696
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
-
/*utils COMMONS library associated with aotra version : «1_29072022-2359 (21/10/2023-
|
|
3
|
+
/*utils COMMONS library associated with aotra version : «1_29072022-2359 (21/10/2023-18:11:26)»*/
|
|
4
4
|
/*-----------------------------------------------------------------------------*/
|
|
5
5
|
|
|
6
6
|
|
|
@@ -5045,7 +5045,7 @@ class OpenAIAPIClient{
|
|
|
5045
5045
|
this.prompt=prompt;
|
|
5046
5046
|
}
|
|
5047
5047
|
|
|
5048
|
-
getAnswer(AIAPIKey, additionalPrompt){
|
|
5048
|
+
async getAnswer(AIAPIKey, additionalPrompt){
|
|
5049
5049
|
|
|
5050
5050
|
const self=this;
|
|
5051
5051
|
const messages = [
|
|
@@ -5057,7 +5057,7 @@ class OpenAIAPIClient{
|
|
|
5057
5057
|
lognow("------------self.apiURL:",self.apiURL);
|
|
5058
5058
|
|
|
5059
5059
|
|
|
5060
|
-
const result=this.launchRequest(AIAPIKey, messages);
|
|
5060
|
+
const result=await this.launchRequest(AIAPIKey, messages);
|
|
5061
5061
|
|
|
5062
5062
|
// DBG
|
|
5063
5063
|
console.log("! RESULT text :",result);
|
|
@@ -5066,7 +5066,7 @@ class OpenAIAPIClient{
|
|
|
5066
5066
|
}
|
|
5067
5067
|
|
|
5068
5068
|
|
|
5069
|
-
|
|
5069
|
+
launchRequest(AIAPIKey, messages){
|
|
5070
5070
|
|
|
5071
5071
|
const self=this;
|
|
5072
5072
|
const p=new Promise((resolve,reject)=>{
|
|
@@ -5141,7 +5141,7 @@ AOTRAUTILS_LIB_IS_LOADED=true;
|
|
|
5141
5141
|
|
|
5142
5142
|
|
|
5143
5143
|
|
|
5144
|
-
/*utils CLIENT library associated with aotra version : «1_29072022-2359 (21/10/2023-
|
|
5144
|
+
/*utils CLIENT library associated with aotra version : «1_29072022-2359 (21/10/2023-18:11:26)»*/
|
|
5145
5145
|
/*-----------------------------------------------------------------------------*/
|
|
5146
5146
|
/* ## Utility global methods in a browser (htmljs) client environment.
|
|
5147
5147
|
*
|
|
@@ -13383,7 +13383,7 @@ createOritaMicroClient=function(url, port, isNode=false, staticMicroClientIdPara
|
|
|
13383
13383
|
|
|
13384
13384
|
|
|
13385
13385
|
|
|
13386
|
-
/*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (21/10/2023-
|
|
13386
|
+
/*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (21/10/2023-18:11:26)»*/
|
|
13387
13387
|
/*-----------------------------------------------------------------------------*/
|
|
13388
13388
|
|
|
13389
13389
|
|
|
@@ -14622,7 +14622,7 @@ function rayVsUnitSphereClosestPoint(p, r) {
|
|
|
14622
14622
|
// MUST REMAIN AT THE END OF THIS LIBRARY FILE !
|
|
14623
14623
|
|
|
14624
14624
|
AOTRAUTILS_GEOMETRY_LIB_IS_LOADED=true;
|
|
14625
|
-
/*utils SERVER library associated with aotra version : «1_29072022-2359 (21/10/2023-
|
|
14625
|
+
/*utils SERVER library associated with aotra version : «1_29072022-2359 (21/10/2023-18:11:26)»*/
|
|
14626
14626
|
/*-----------------------------------------------------------------------------*/
|
|
14627
14627
|
|
|
14628
14628
|
|
aotrautils/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aotrautils",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.696",
|
|
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)",
|