Skip to content

Commit

Permalink
Automatically applying Prettier changes
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed May 30, 2024
1 parent d6bdccb commit c0f4d02
Show file tree
Hide file tree
Showing 10 changed files with 91 additions and 96 deletions.
41 changes: 20 additions & 21 deletions JS/edgechains/examples/chat-with-llm/package.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,22 @@
{
"name": "ownChatGpt",
"version": "1.0.0",
"description": "",
"main": "index.js",
"type": "module",
"keywords": [],
"author": "",
"scripts": {
"start": "tsc && node --experimental-wasm-modules ./dist/index.js"
},
"license": "ISC",
"dependencies": {
"@arakoodev/edgechains.js": "^0.1.23",
"@arakoodev/jsonnet": "^0.2.1",
"sync-rpc": "^1.3.6",
"zod": "^3.23.8"
},
"devDependencies": {
"@types/node": "^20.12.12"
}
"name": "ownChatGpt",
"version": "1.0.0",
"description": "",
"main": "index.js",
"type": "module",
"keywords": [],
"author": "",
"scripts": {
"start": "tsc && node --experimental-wasm-modules ./dist/index.js"
},
"license": "ISC",
"dependencies": {
"@arakoodev/edgechains.js": "^0.1.23",
"@arakoodev/jsonnet": "^0.2.1",
"sync-rpc": "^1.3.6",
"zod": "^3.23.8"
},
"devDependencies": {
"@types/node": "^20.12.12"
}
}

9 changes: 3 additions & 6 deletions JS/edgechains/examples/chat-with-llm/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@

import { ArakooServer } from "@arakoodev/edgechains.js/arakooserver";
import Jsonnet from "@arakoodev/jsonnet";
//@ts-ignore
import createClient from 'sync-rpc';
import createClient from "sync-rpc";

import { fileURLToPath } from "url"
import { fileURLToPath } from "url";
import path from "path";
const server = new ArakooServer();

Expand All @@ -23,6 +22,4 @@ app.post("/chat", async (c: any) => {
return c.json(JSON.parse(response));
});

server.listen(3000)


server.listen(3000);
2 changes: 1 addition & 1 deletion JS/edgechains/examples/chat-with-pdf/src/routes/chat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { Supabase } from "@arakoodev/edgechains.js/vector-db";
import { PdfLoader } from "@arakoodev/edgechains.js/document-loader";
import { TextSplitter } from "@arakoodev/edgechains.js/splitter";
import { ArakooServer } from "@arakoodev/edgechains.js/arakooserver";
import { Spinner } from "cli-spinner"
import { Spinner } from "cli-spinner";

import { z } from "zod";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const { OpenAI } = require("@arakoodev/edgechains.js/openai");
const path = require('path');
const path = require("path");
const Jsonnet = require("@arakoodev/jsonnet");
const jsonnet = new Jsonnet();
const secretsPath = path.join(__dirname, "../../jsonnet/secrets.jsonnet");
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const { OpenAI } = require("@arakoodev/edgechains.js/openai");
const path = require('path');
const path = require("path");
const Jsonnet = require("@arakoodev/jsonnet");
const jsonnet = new Jsonnet();
const secretsPath = path.join(__dirname, "../../jsonnet/secrets.jsonnet");
Expand Down
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
{
"name": "function-calling",
"version": "1.0.0",
"description": "",
"main": "index.js",
"type": "module",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "tsc && node --experimental-wasm-modules ./dist/index.js"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"@arakoodev/edgechains.js": "^0.1.23",
"@arakoodev/jsonnet": "^0.2.1",
"axios": "^1.7.1",
"moment-timezone": "^0.5.45",
"openai": "^4.47.1",
"sync-rpc": "^1.3.6"
}
"name": "function-calling",
"version": "1.0.0",
"description": "",
"main": "index.js",
"type": "module",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "tsc && node --experimental-wasm-modules ./dist/index.js"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"@arakoodev/edgechains.js": "^0.1.23",
"@arakoodev/jsonnet": "^0.2.1",
"axios": "^1.7.1",
"moment-timezone": "^0.5.45",
"openai": "^4.47.1",
"sync-rpc": "^1.3.6"
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ArakooServer } from "@arakoodev/edgechains.js/arakooserver";
import { fileURLToPath } from "url"
import Jsonnet from "@arakoodev/jsonnet"
import path from "path"
import { fileURLToPath } from "url";
import Jsonnet from "@arakoodev/jsonnet";
import path from "path";

//@ts-ignore
import createClient from "sync-rpc";
Expand Down
42 changes: 21 additions & 21 deletions JS/edgechains/examples/language-translater/backend/package.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
{
"name": "language-translater",
"version": "1.0.0",
"description": "",
"main": "index.js",
"type": "module",
"keywords": [],
"author": "",
"scripts": {
"start": "tsc && node --experimental-wasm-modules ./dist/index.js"
},
"license": "ISC",
"dependencies": {
"@arakoodev/edgechains.js": "^0.1.23",
"@arakoodev/jsonnet": "^0.2.1",
"hono": "^4.3.7",
"sync-rpc": "^1.3.6",
"zod": "^3.23.8"
},
"devDependencies": {
"@types/cors": "^2.8.17"
}
"name": "language-translater",
"version": "1.0.0",
"description": "",
"main": "index.js",
"type": "module",
"keywords": [],
"author": "",
"scripts": {
"start": "tsc && node --experimental-wasm-modules ./dist/index.js"
},
"license": "ISC",
"dependencies": {
"@arakoodev/edgechains.js": "^0.1.23",
"@arakoodev/jsonnet": "^0.2.1",
"hono": "^4.3.7",
"sync-rpc": "^1.3.6",
"zod": "^3.23.8"
},
"devDependencies": {
"@types/cors": "^2.8.17"
}
}
40 changes: 20 additions & 20 deletions JS/edgechains/examples/summarize-page/package.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
{
"name": "summarizer-app",
"version": "1.0.0",
"description": "",
"main": "index.js",
"type": "module",
"keywords": [],
"author": "",
"scripts": {
"start": "tsc && node --experimental-wasm-modules ./dist/index.js"
},
"license": "ISC",
"dependencies": {
"@arakoodev/edgechains.js": "^0.1.23",
"@arakoodev/jsonnet": "^0.2.1",
"sync-rpc": "^1.3.6",
"zod": "^3.23.8"
},
"devDependencies": {
"@types/request": "^2.48.12"
}
"name": "summarizer-app",
"version": "1.0.0",
"description": "",
"main": "index.js",
"type": "module",
"keywords": [],
"author": "",
"scripts": {
"start": "tsc && node --experimental-wasm-modules ./dist/index.js"
},
"license": "ISC",
"dependencies": {
"@arakoodev/edgechains.js": "^0.1.23",
"@arakoodev/jsonnet": "^0.2.1",
"sync-rpc": "^1.3.6",
"zod": "^3.23.8"
},
"devDependencies": {
"@types/request": "^2.48.12"
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@

const { WebScraper } = require("@arakoodev/edgechains.js/scraper")
const { WebScraper } = require("@arakoodev/edgechains.js/scraper");

const scraper = new WebScraper();

Expand Down

0 comments on commit c0f4d02

Please sign in to comment.