aotrautils 0.0.1977 → 0.0.1980
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 -11
- aotrautils/package-lock.json +2 -2
- 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 (09/09/2026-
|
|
3
|
+
/*utils COMMONS library associated with aotra version : «1_29072022-2359 (09/09/2026-22:37:24)»*/
|
|
4
4
|
/*-----------------------------------------------------------------------------*/
|
|
5
5
|
|
|
6
6
|
|
|
@@ -5475,7 +5475,7 @@ window.AOTRAUTILS_LIB_IS_LOADED=true;
|
|
|
5475
5475
|
|
|
5476
5476
|
|
|
5477
5477
|
|
|
5478
|
-
/*utils CLIENT library associated with aotra version : «1_29072022-2359 (09/09/2026-
|
|
5478
|
+
/*utils CLIENT library associated with aotra version : «1_29072022-2359 (09/09/2026-22:37:24)»*/
|
|
5479
5479
|
/*-----------------------------------------------------------------------------*/
|
|
5480
5480
|
/* ## Utility global methods in a browser (htmljs) client environment.
|
|
5481
5481
|
*
|
|
@@ -12990,7 +12990,7 @@ window.createOritaMicroClient=function(url, port, isNode=false, staticMicroClien
|
|
|
12990
12990
|
|
|
12991
12991
|
|
|
12992
12992
|
|
|
12993
|
-
/*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (09/09/2026-
|
|
12993
|
+
/*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (09/09/2026-22:37:24)»*/
|
|
12994
12994
|
/*-----------------------------------------------------------------------------*/
|
|
12995
12995
|
|
|
12996
12996
|
|
|
@@ -14052,10 +14052,10 @@ function rayVsUnitSphereClosestPoint(p, r) {
|
|
|
14052
14052
|
// MUST REMAIN AT THE END OF THIS LIBRARY FILE !
|
|
14053
14053
|
|
|
14054
14054
|
window.AOTRAUTILS_GEOMETRY_LIB_IS_LOADED=true;
|
|
14055
|
-
/*utils 3D library associated with aotra version : «1_29072022-2359 (09/09/2026-
|
|
14055
|
+
/*utils 3D library associated with aotra version : «1_29072022-2359 (09/09/2026-22:37:24)»*/
|
|
14056
14056
|
/*-----------------------------------------------------------------------------*/
|
|
14057
14057
|
|
|
14058
|
-
/*utils AI library associated with aotra version : «1_29072022-2359 (09/09/2026-
|
|
14058
|
+
/*utils AI library associated with aotra version : «1_29072022-2359 (09/09/2026-22:37:24)»*/
|
|
14059
14059
|
/*-----------------------------------------------------------------------------*/
|
|
14060
14060
|
|
|
14061
14061
|
|
|
@@ -14121,7 +14121,9 @@ window.LLMAPIClient=class LLMAPIClient{
|
|
|
14121
14121
|
this.defaultPrompt=defaultPrompt;
|
|
14122
14122
|
}
|
|
14123
14123
|
|
|
14124
|
-
async getAnswer(AIAPIKey, userPrompt, defaultPromptParameters={})
|
|
14124
|
+
async getAnswer(AIAPIKey, userPrompt, defaultPromptParameters={})
|
|
14125
|
+
/*THROWS LLMTextGenerationError*/
|
|
14126
|
+
{
|
|
14125
14127
|
|
|
14126
14128
|
const PARAMETERS_DELIMITERS=["<",">"];
|
|
14127
14129
|
|
|
@@ -14136,10 +14138,10 @@ window.LLMAPIClient=class LLMAPIClient{
|
|
|
14136
14138
|
try{
|
|
14137
14139
|
const result=await this.launchLLMRequest(AIAPIKey, messages);
|
|
14138
14140
|
return result;
|
|
14139
|
-
}catch(
|
|
14141
|
+
}catch(llmTextGenerationError){
|
|
14140
14142
|
// TRACE
|
|
14141
|
-
|
|
14142
|
-
return {
|
|
14143
|
+
const errorMessage="ERROR : LLM provider returned an error when prompted";
|
|
14144
|
+
return new Error(errorMessage, {cause:llmTextGenerationError});
|
|
14143
14145
|
}
|
|
14144
14146
|
|
|
14145
14147
|
}
|
|
@@ -14153,7 +14155,7 @@ window.LLMAPIClient=class LLMAPIClient{
|
|
|
14153
14155
|
];
|
|
14154
14156
|
}
|
|
14155
14157
|
|
|
14156
|
-
|
|
14158
|
+
// DO NOT USE DIRECTLY !!!
|
|
14157
14159
|
/*private*/launchLLMRequest(AIAPIKey, messages){
|
|
14158
14160
|
|
|
14159
14161
|
const self=this;
|
|
@@ -14176,6 +14178,7 @@ window.LLMAPIClient=class LLMAPIClient{
|
|
|
14176
14178
|
|
|
14177
14179
|
// TRACE
|
|
14178
14180
|
lognow("ERROR:", error);
|
|
14181
|
+
|
|
14179
14182
|
reject(error);
|
|
14180
14183
|
}
|
|
14181
14184
|
|
|
@@ -14183,6 +14186,7 @@ window.LLMAPIClient=class LLMAPIClient{
|
|
|
14183
14186
|
|
|
14184
14187
|
resolve(assistantReply);
|
|
14185
14188
|
}).catch(errorObj=>{
|
|
14189
|
+
|
|
14186
14190
|
const error=errorObj.error;
|
|
14187
14191
|
const httpStatus=errorObj.httpStatus;
|
|
14188
14192
|
|
|
@@ -14323,7 +14327,7 @@ window.getLLMAPIClient=(modelName, apiURL, agentRole, defaultPrompt, llmProvider
|
|
|
14323
14327
|
|
|
14324
14328
|
|
|
14325
14329
|
|
|
14326
|
-
/*utils CONSOLE library associated with aotra version : «1_29072022-2359 (09/09/2026-
|
|
14330
|
+
/*utils CONSOLE library associated with aotra version : «1_29072022-2359 (09/09/2026-22:37:24)»*/
|
|
14327
14331
|
/*-----------------------------------------------------------------------------*/
|
|
14328
14332
|
|
|
14329
14333
|
|
aotrautils/package-lock.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aotrautils",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.1980",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "aotrautils",
|
|
9
|
-
"version": "0.0.
|
|
9
|
+
"version": "0.0.1980",
|
|
10
10
|
"license": "HGPL-1.0",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"atob": "^2.1.2",
|
aotrautils/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aotrautils",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.1980",
|
|
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)",
|