aotrautils 0.0.668 → 0.0.670
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 (
|
|
3
|
+
/*utils COMMONS library associated with aotra version : «1_29072022-2359 (21/10/2023-00:47:44)»*/
|
|
4
4
|
/*-----------------------------------------------------------------------------*/
|
|
5
5
|
|
|
6
6
|
|
|
@@ -5033,12 +5033,12 @@ window.stringifyObject=function(objectToStringify){
|
|
|
5033
5033
|
|
|
5034
5034
|
class OpenAIAPIClient{
|
|
5035
5035
|
|
|
5036
|
-
constructor(
|
|
5036
|
+
constructor(modelName, apiURL, agentRole, prompt){
|
|
5037
5037
|
|
|
5038
5038
|
//DBG
|
|
5039
5039
|
lognow(">>>>>>>>>>>>>>>>!!!!!!apiURL:",apiURL);
|
|
5040
5040
|
|
|
5041
|
-
this.apiKey=apiKey;
|
|
5041
|
+
// this.apiKey=apiKey;
|
|
5042
5042
|
this.modelName=modelName;
|
|
5043
5043
|
this.apiURL=apiURL;
|
|
5044
5044
|
this.agentRole=agentRole;
|
|
@@ -5062,7 +5062,7 @@ class OpenAIAPIClient{
|
|
|
5062
5062
|
fetch(self.apiURL, {
|
|
5063
5063
|
method: "POST",
|
|
5064
5064
|
headers: {
|
|
5065
|
-
"Authorization": "Bearer "+
|
|
5065
|
+
"Authorization": "Bearer "+AIAPIKey,
|
|
5066
5066
|
"Content-Type": "application/json",
|
|
5067
5067
|
},
|
|
5068
5068
|
body: JSON.stringify({
|
|
@@ -5112,8 +5112,8 @@ class OpenAIAPIClient{
|
|
|
5112
5112
|
|
|
5113
5113
|
|
|
5114
5114
|
// Nodejs compatibility :
|
|
5115
|
-
getOpenAIAPIClient=(
|
|
5116
|
-
return new OpenAIAPIClient(
|
|
5115
|
+
getOpenAIAPIClient=(modelName, apiURL, agentRole, prompt)=>{
|
|
5116
|
+
return new OpenAIAPIClient(modelName, apiURL, agentRole, prompt);
|
|
5117
5117
|
};
|
|
5118
5118
|
|
|
5119
5119
|
|
|
@@ -5128,7 +5128,7 @@ AOTRAUTILS_LIB_IS_LOADED=true;
|
|
|
5128
5128
|
|
|
5129
5129
|
|
|
5130
5130
|
|
|
5131
|
-
/*utils CLIENT library associated with aotra version : «1_29072022-2359 (
|
|
5131
|
+
/*utils CLIENT library associated with aotra version : «1_29072022-2359 (21/10/2023-00:47:44)»*/
|
|
5132
5132
|
/*-----------------------------------------------------------------------------*/
|
|
5133
5133
|
/* ## Utility global methods in a browser (htmljs) client environment.
|
|
5134
5134
|
*
|
|
@@ -13370,7 +13370,7 @@ createOritaMicroClient=function(url, port, isNode=false, staticMicroClientIdPara
|
|
|
13370
13370
|
|
|
13371
13371
|
|
|
13372
13372
|
|
|
13373
|
-
/*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (
|
|
13373
|
+
/*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (21/10/2023-00:47:44)»*/
|
|
13374
13374
|
/*-----------------------------------------------------------------------------*/
|
|
13375
13375
|
|
|
13376
13376
|
|
|
@@ -14609,7 +14609,7 @@ function rayVsUnitSphereClosestPoint(p, r) {
|
|
|
14609
14609
|
// MUST REMAIN AT THE END OF THIS LIBRARY FILE !
|
|
14610
14610
|
|
|
14611
14611
|
AOTRAUTILS_GEOMETRY_LIB_IS_LOADED=true;
|
|
14612
|
-
/*utils SERVER library associated with aotra version : «1_29072022-2359 (
|
|
14612
|
+
/*utils SERVER library associated with aotra version : «1_29072022-2359 (21/10/2023-00:47:44)»*/
|
|
14613
14613
|
/*-----------------------------------------------------------------------------*/
|
|
14614
14614
|
|
|
14615
14615
|
|
aotrautils/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aotrautils",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.670",
|
|
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)",
|