jyn 0.0.1-beta

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/index.js +22 -0
  2. package/package.json +18 -0
package/index.js ADDED
@@ -0,0 +1,22 @@
1
+ import { OpenRouter } from "@openrouter/sdk";
2
+
3
+ const openrouter = new OpenRouter({
4
+ });
5
+
6
+ const stream = await openrouter.chat.send({
7
+ model: "liquid/lfm-2.5-1.2b-thinking:free",
8
+ messages: [
9
+ {
10
+ "role": "user",
11
+ "content": "What is the meaning of name Abhirup?"
12
+ }
13
+ ],
14
+ stream: true
15
+ });
16
+
17
+ for await (const chunk of stream) {
18
+ const content = chunk.choices[0]?.delta?.content;
19
+ if (content) {
20
+ process.stdout.write(content);
21
+ }
22
+ }
package/package.json ADDED
@@ -0,0 +1,18 @@
1
+ {
2
+ "name": "jyn",
3
+ "version": "0.0.1-beta",
4
+ "description": "Toolkit for random generation",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1"
8
+ },
9
+ "keywords": [],
10
+ "author": "",
11
+ "license": "ISC",
12
+ "type": "module",
13
+ "dependencies": {
14
+ "@openrouter/sdk": "^0.4.0",
15
+ "ember": "^1.1.1",
16
+ "void": "^3.0.1"
17
+ }
18
+ }