apexify.js 4.1.2 → 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.
Files changed (2) hide show
  1. package/README.md +16 -0
  2. package/package.json +2 -1
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:**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apexify.js",
3
- "version": "4.1.2",
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,6 +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.2",
156
157
  "api": "^6.1.1",
157
158
  "gifencoder": "^2.0.1",
158
159
  "hercai": "^12.2.0",