@nomalism-com/api 0.43.60 → 0.43.61
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 -0
- package/dist/index.js +8 -0
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1741,6 +1741,8 @@ declare class Repository$3 implements Nomalism$1.LLM.IRepository {
|
|
|
1741
1741
|
private api;
|
|
1742
1742
|
constructor({ api, route }: IModuleConstructor);
|
|
1743
1743
|
prompt(data: Nomalism$1.LLM.IPromptRequest, { onChunk, onDone, onError }: Nomalism$1.LLM.IPromptResponse): Nomalism$1.LLM.IPromptAbortController;
|
|
1744
|
+
translate(body: Nomalism$1.LLM.ITranslateRequest): Promise<string>;
|
|
1745
|
+
identifyLanguage(body: Nomalism$1.LLM.IIdentifyLanguageRequest): Promise<string>;
|
|
1744
1746
|
}
|
|
1745
1747
|
|
|
1746
1748
|
declare namespace llm {
|
package/dist/index.js
CHANGED
|
@@ -4039,6 +4039,14 @@ var Repository120 = class {
|
|
|
4039
4039
|
})();
|
|
4040
4040
|
return { abort: () => ac.abort() };
|
|
4041
4041
|
}
|
|
4042
|
+
async translate(body) {
|
|
4043
|
+
const response = await this.api.post(`${this.route}translate`, body);
|
|
4044
|
+
return response.data;
|
|
4045
|
+
}
|
|
4046
|
+
async identifyLanguage(body) {
|
|
4047
|
+
const response = await this.api.post(`${this.route}identify_language`, body);
|
|
4048
|
+
return response.data;
|
|
4049
|
+
}
|
|
4042
4050
|
};
|
|
4043
4051
|
|
|
4044
4052
|
// src/modules/integration/patchNotes.ts
|
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.43.
|
|
4
|
+
"version": "0.43.61",
|
|
5
5
|
"author": "Nomalism <it.nomalism@gmail.com> (https://https://nomalism.com/)",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"type": "module",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"prepack": "npm run lint && npm run build"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@nomalism-com/types": "^0.43.
|
|
26
|
+
"@nomalism-com/types": "^0.43.72",
|
|
27
27
|
"axios": "^1.13.6"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|