apexify.js 4.1.1 → 4.1.3
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/README.md
CHANGED
|
@@ -20,6 +20,22 @@ Sure, here's a more polished version:
|
|
|
20
20
|
- **AI Personality:** Personalize your interactions with the AI chatbot by defining its personality traits and characteristics.
|
|
21
21
|
- **Chat Memory:** Enable the AI chatbot to remember past interactions and maintain context across conversations, providing a more personalized and coherent experience.
|
|
22
22
|
|
|
23
|
+
- **Usage outside discord**
|
|
24
|
+
<details>
|
|
25
|
+
|
|
26
|
+
```js
|
|
27
|
+
const { ApexImagine, ApexChat } = require('apexify.js');
|
|
28
|
+
|
|
29
|
+
const imgURLS = await ApexImagine(model: 'prodia', prompt: 'draw a cat', options: { count: 2, nsfw: false, deepCheck: true, negative_prompt: 'not blur image', cfg_scale: 9, width: 1024, height: 1024, steps: 19, seed: -1, sampler: "DPM-Solver", image_style: "Cinematic" });
|
|
30
|
+
|
|
31
|
+
console.log(imgURLS); // returns string array of each generated image url.
|
|
32
|
+
|
|
33
|
+
const chatreply = await ApexChat(model: 'gemini', prompt: 'hey how r u?');
|
|
34
|
+
|
|
35
|
+
console.log(chatreply); // returns ai response as string.
|
|
36
|
+
```
|
|
37
|
+
</details>
|
|
38
|
+
|
|
23
39
|
### 📸 Canvas Image Manipulation Toolkit 🎨
|
|
24
40
|
|
|
25
41
|
**Features:**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validOptions.d.ts","sourceRoot":"","sources":["../../../lib/ai/functions/validOptions.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"validOptions.d.ts","sourceRoot":"","sources":["../../../lib/ai/functions/validOptions.ts"],"names":[],"mappings":"AA2CA,eAAO,MAAM,YAAY;;;;;;;;EAA2B,CAAC"}
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.validOptions = void 0;
|
|
7
7
|
const api_1 = __importDefault(require("api"));
|
|
8
8
|
const sdk = (0, api_1.default)("@prodia/v1.3.0#be019b2kls0gqss3");
|
|
9
|
+
sdk.auth('43435e1c-cab1-493f-a224-f51e4b97ce8d');
|
|
9
10
|
async function initializeValidOptions() {
|
|
10
11
|
const [SDModals, SDXLModals, samplers] = await Promise.all([
|
|
11
12
|
sdModals(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validOptions.js","sourceRoot":"","sources":["../../../lib/ai/functions/validOptions.ts"],"names":[],"mappings":";;;;;;AAAA,8CAAsB;AAEtB,MAAM,GAAG,GAAG,IAAA,aAAG,EAAC,iCAAiC,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"validOptions.js","sourceRoot":"","sources":["../../../lib/ai/functions/validOptions.ts"],"names":[],"mappings":";;;;;;AAAA,8CAAsB;AAEtB,MAAM,GAAG,GAAG,IAAA,aAAG,EAAC,iCAAiC,CAAC,CAAC;AACnD,GAAG,CAAC,IAAI,CAAC,sCAAsC,CAAC,CAAC;AAEjD,KAAK,UAAU,sBAAsB;IACjC,MAAM,CAAC,QAAQ,EAAE,UAAU,EAAE,QAAQ,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;QACvD,QAAQ,EAAE;QACV,UAAU,EAAE;QACZ,OAAO,EAAE;KACZ,CAAC,CAAC;IAEH,MAAM,UAAU,GAAG;QACf,IAAI;QACJ,IAAI;QACJ,SAAS;QACT,IAAI;QACJ,QAAQ;QACR,QAAQ;QACR,SAAS;QACT,OAAO;QACP,QAAQ;KACX,CAAA;IAED,OAAO;QACH,iBAAiB,EAAE,UAAU;QAC7B,cAAc,EAAE;YACZ,WAAW,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,EAAE,cAAc;YACzD,sBAAsB,EAAE,YAAY,EAAE,aAAa,EAAE,WAAW;SACnE;QACD,aAAa,EAAE,QAAQ;QACvB,SAAS,EAAE,UAAU;QACrB,aAAa,EAAE;YACX,UAAU,EAAE,aAAa,EAAE,OAAO,EAAE,WAAW,EAAE,YAAY;YAC7D,aAAa,EAAE,SAAS,EAAE,WAAW,EAAE,aAAa,EAAE,WAAW;YACjE,UAAU,EAAE,UAAU,EAAE,WAAW,EAAE,SAAS,EAAE,cAAc;YAC9D,WAAW,EAAE,SAAS,EAAE,YAAY;SACvC;QACD,iBAAiB,EAAE,QAAQ;QAC3B,SAAS,EAAE,CAAC,GAAG,QAAQ,EAAE,GAAG,UAAU,EAAE,GAAG,UAAU,CAAC;KACzD,CAAC;AACN,CAAC;AAEY,QAAA,YAAY,GAAG,sBAAsB,EAAE,CAAC;AAErD,KAAK,UAAU,QAAQ;IACnB,MAAM,QAAQ,GAAG,MAAM,GAAG,CAAC,UAAU,EAAE,CAAC;IACxC,OAAO,QAAQ,CAAC,IAAI,CAAC;AACzB,CAAC;AAED,KAAK,UAAU,UAAU;IACrB,MAAM,UAAU,GAAG,MAAM,GAAG,CAAC,cAAc,EAAE,CAAC;IAC9C,OAAO,UAAU,CAAC,IAAI,CAAC;AAC3B,CAAC;AAGD,KAAK,UAAU,OAAO;IAClB,MAAM,QAAQ,GAAG,MAAM,GAAG,CAAC,YAAY,EAAE,CAAC;IAE1C,OAAO,QAAQ,CAAC,IAAI,CAAA;AACxB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "apexify.js",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.3",
|
|
4
4
|
"description": "Ai and Canvas library. Supports typescript and javascript",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -153,7 +153,7 @@
|
|
|
153
153
|
"@google/generative-ai": "^0.11.1",
|
|
154
154
|
"@iamtraction/google-translate": "^2.0.1",
|
|
155
155
|
"@napi-rs/canvas": "^0.1.51",
|
|
156
|
-
"apexify.js": "^4.1.
|
|
156
|
+
"apexify.js": "^4.1.2",
|
|
157
157
|
"api": "^6.1.1",
|
|
158
158
|
"gifencoder": "^2.0.1",
|
|
159
159
|
"hercai": "^12.2.0",
|