aotrautils-srv 0.0.647 → 0.0.648
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 (19/10/2023-23:
|
|
3
|
+
/*utils COMMONS library associated with aotra version : «1_29072022-2359 (19/10/2023-23:59:24)»*/
|
|
4
4
|
/*-----------------------------------------------------------------------------*/
|
|
5
5
|
|
|
6
6
|
|
|
@@ -5034,12 +5034,10 @@ window.stringifyObject=function(objectToStringify){
|
|
|
5034
5034
|
class OpenAIAPIClient{
|
|
5035
5035
|
|
|
5036
5036
|
construct(modelName, apiURL, agentRole, prompt){
|
|
5037
|
-
|
|
5038
5037
|
this.modelName=modelName;
|
|
5039
5038
|
this.apiURL=apiURL;
|
|
5040
5039
|
this.agentRole=agentRole;
|
|
5041
5040
|
this.prompt=prompt;
|
|
5042
|
-
|
|
5043
5041
|
}
|
|
5044
5042
|
|
|
5045
5043
|
getAnswer(AIAPIKey, additionalPrompt){
|
|
@@ -5094,6 +5092,10 @@ class OpenAIAPIClient{
|
|
|
5094
5092
|
|
|
5095
5093
|
// Nodejs compatibility :
|
|
5096
5094
|
getOpenAIAPIClient=(modelName, apiURL, agentRole, prompt)=>{
|
|
5095
|
+
|
|
5096
|
+
// DBG
|
|
5097
|
+
lognow(`TEST : ${modelName}, ${apiUR}L, ${agentRole}, ${prompt}.`)
|
|
5098
|
+
|
|
5097
5099
|
return new OpenAIAPIClient(modelName, apiURL, agentRole, prompt);
|
|
5098
5100
|
};
|
|
5099
5101
|
|
|
@@ -5109,7 +5111,7 @@ AOTRAUTILS_LIB_IS_LOADED=true;
|
|
|
5109
5111
|
|
|
5110
5112
|
|
|
5111
5113
|
|
|
5112
|
-
/*utils SERVER library associated with aotra version : «1_29072022-2359 (19/10/2023-23:
|
|
5114
|
+
/*utils SERVER library associated with aotra version : «1_29072022-2359 (19/10/2023-23:59:24)»*/
|
|
5113
5115
|
/*-----------------------------------------------------------------------------*/
|
|
5114
5116
|
|
|
5115
5117
|
|
aotrautils-srv/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aotrautils-srv",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.648",
|
|
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)",
|