aotrautils-srv 0.0.648 → 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 (
|
|
3
|
+
/*utils COMMONS library associated with aotra version : «1_29072022-2359 (20/10/2023-00:02:40)»*/
|
|
4
4
|
/*-----------------------------------------------------------------------------*/
|
|
5
5
|
|
|
6
6
|
|
|
@@ -5034,6 +5034,11 @@ window.stringifyObject=function(objectToStringify){
|
|
|
5034
5034
|
class OpenAIAPIClient{
|
|
5035
5035
|
|
|
5036
5036
|
construct(modelName, apiURL, agentRole, prompt){
|
|
5037
|
+
|
|
5038
|
+
//DBG
|
|
5039
|
+
lognow(">>>>>>>>>>>>>>>>!!!!!!apiURL:",apiURL);
|
|
5040
|
+
|
|
5041
|
+
|
|
5037
5042
|
this.modelName=modelName;
|
|
5038
5043
|
this.apiURL=apiURL;
|
|
5039
5044
|
this.agentRole=agentRole;
|
|
@@ -5050,6 +5055,7 @@ class OpenAIAPIClient{
|
|
|
5050
5055
|
|
|
5051
5056
|
//DBG
|
|
5052
5057
|
lognow("!!!!!!self.apiURL:",self.apiURL);
|
|
5058
|
+
|
|
5053
5059
|
/*
|
|
5054
5060
|
const result=()=>{
|
|
5055
5061
|
const p=new Promise((resolve,reject)=>{
|
|
@@ -5094,7 +5100,7 @@ class OpenAIAPIClient{
|
|
|
5094
5100
|
getOpenAIAPIClient=(modelName, apiURL, agentRole, prompt)=>{
|
|
5095
5101
|
|
|
5096
5102
|
// DBG
|
|
5097
|
-
lognow(`TEST : ${modelName}, ${
|
|
5103
|
+
lognow(`TEST : ${modelName}, ${apiURL}, ${agentRole}, ${prompt}.`)
|
|
5098
5104
|
|
|
5099
5105
|
return new OpenAIAPIClient(modelName, apiURL, agentRole, prompt);
|
|
5100
5106
|
};
|
|
@@ -5111,7 +5117,7 @@ AOTRAUTILS_LIB_IS_LOADED=true;
|
|
|
5111
5117
|
|
|
5112
5118
|
|
|
5113
5119
|
|
|
5114
|
-
/*utils SERVER library associated with aotra version : «1_29072022-2359 (
|
|
5120
|
+
/*utils SERVER library associated with aotra version : «1_29072022-2359 (20/10/2023-00:02:40)»*/
|
|
5115
5121
|
/*-----------------------------------------------------------------------------*/
|
|
5116
5122
|
|
|
5117
5123
|
|
aotrautils-srv/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aotrautils-srv",
|
|
3
|
-
"version": "0.0.
|
|
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)",
|