aotrautils-srv 0.0.670 → 0.0.671
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-
|
|
3
|
+
/*utils COMMONS library associated with aotra version : «1_29072022-2359 (21/10/2023-15:22:15)»*/
|
|
4
4
|
/*-----------------------------------------------------------------------------*/
|
|
5
5
|
|
|
6
6
|
|
|
@@ -5057,7 +5057,7 @@ class OpenAIAPIClient{
|
|
|
5057
5057
|
lognow("------------self.apiURL:",self.apiURL);
|
|
5058
5058
|
|
|
5059
5059
|
|
|
5060
|
-
return (async ()=>{
|
|
5060
|
+
return await (async ()=>{
|
|
5061
5061
|
const p=new Promise((resolve,reject)=>{
|
|
5062
5062
|
fetch(self.apiURL, {
|
|
5063
5063
|
method: "POST",
|
|
@@ -5070,7 +5070,7 @@ class OpenAIAPIClient{
|
|
|
5070
5070
|
messages,
|
|
5071
5071
|
}),
|
|
5072
5072
|
})
|
|
5073
|
-
|
|
5073
|
+
// STRANGE : DOES NOT WORK !!:
|
|
5074
5074
|
//.then(response => response.json())
|
|
5075
5075
|
// STRANGE : DOES WORK :
|
|
5076
5076
|
.then(response => {
|
|
@@ -5093,8 +5093,6 @@ class OpenAIAPIClient{
|
|
|
5093
5093
|
// DBG
|
|
5094
5094
|
console.log("~~~~~~~~~~~data :",data);
|
|
5095
5095
|
|
|
5096
|
-
////
|
|
5097
|
-
|
|
5098
5096
|
const assistantReply = data.choices[0].message.content;
|
|
5099
5097
|
resolve(assistantReply);
|
|
5100
5098
|
})
|
|
@@ -5137,7 +5135,7 @@ AOTRAUTILS_LIB_IS_LOADED=true;
|
|
|
5137
5135
|
|
|
5138
5136
|
|
|
5139
5137
|
|
|
5140
|
-
/*utils SERVER library associated with aotra version : «1_29072022-2359 (21/10/2023-
|
|
5138
|
+
/*utils SERVER library associated with aotra version : «1_29072022-2359 (21/10/2023-15:22:15)»*/
|
|
5141
5139
|
/*-----------------------------------------------------------------------------*/
|
|
5142
5140
|
|
|
5143
5141
|
|
aotrautils-srv/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aotrautils-srv",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.671",
|
|
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)",
|