@nomalism-com/api 0.40.93 → 0.40.95
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.
- package/dist/index.d.ts +2 -5
- package/dist/index.js +4 -4
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1746,13 +1746,10 @@ declare namespace accountCode {
|
|
|
1746
1746
|
export { Repository$2 as default };
|
|
1747
1747
|
}
|
|
1748
1748
|
|
|
1749
|
-
interface IModuleConstructorExtended extends IModuleConstructor {
|
|
1750
|
-
headers: Record<string, string>;
|
|
1751
|
-
}
|
|
1752
1749
|
declare class Repository$1 implements Nomalism$1.LLM.IRepository {
|
|
1753
1750
|
route: string;
|
|
1754
|
-
private
|
|
1755
|
-
constructor({
|
|
1751
|
+
private api;
|
|
1752
|
+
constructor({ api, route }: IModuleConstructor);
|
|
1756
1753
|
prompt(data: Nomalism$1.LLM.IPromptRequest, { onChunk, onDone, onError }: Nomalism$1.LLM.IPromptResponse): Promise<Nomalism$1.LLM.IPromptAbortController>;
|
|
1757
1754
|
}
|
|
1758
1755
|
|
package/dist/index.js
CHANGED
|
@@ -4051,8 +4051,8 @@ __export(llm_exports, {
|
|
|
4051
4051
|
default: () => Repository120
|
|
4052
4052
|
});
|
|
4053
4053
|
var Repository120 = class {
|
|
4054
|
-
constructor({
|
|
4055
|
-
this.
|
|
4054
|
+
constructor({ api, route }) {
|
|
4055
|
+
this.api = api;
|
|
4056
4056
|
this.route = route;
|
|
4057
4057
|
}
|
|
4058
4058
|
async prompt(data, { onChunk, onDone, onError }) {
|
|
@@ -4063,7 +4063,7 @@ var Repository120 = class {
|
|
|
4063
4063
|
method: "POST",
|
|
4064
4064
|
headers: {
|
|
4065
4065
|
"Content-Type": "application/json",
|
|
4066
|
-
|
|
4066
|
+
Authorization: this.api.defaults.headers.common.Authorization
|
|
4067
4067
|
},
|
|
4068
4068
|
body: JSON.stringify(data),
|
|
4069
4069
|
signal: ac.signal
|
|
@@ -4306,7 +4306,7 @@ var API = class {
|
|
|
4306
4306
|
this.Portal = new Repository117(getModuleParams("stock", "portal"));
|
|
4307
4307
|
this.GoogleSheetPool = new Repository118(getModuleParams("stock", "google_sheet_pool"));
|
|
4308
4308
|
this.AccountCode = new Repository119(getModuleParams("stock", "account_code"));
|
|
4309
|
-
this.LLM = new Repository120(
|
|
4309
|
+
this.LLM = new Repository120(getModuleParams("llm", "llm"));
|
|
4310
4310
|
this.PatchNotes = new Repository121(getModuleParams("integration", "patch_notes"));
|
|
4311
4311
|
}
|
|
4312
4312
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nomalism-com/api",
|
|
3
3
|
"description": "A nomalism API package for performing HTTP requests on API endpoints",
|
|
4
|
-
"version": "0.40.
|
|
4
|
+
"version": "0.40.95",
|
|
5
5
|
"author": "Nomalism <it.nomalism@gmail.com> (https://https://nomalism.com/)",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"type": "module",
|