diff --git a/JS/edgechains/examples/chat-with-llm/package.json b/JS/edgechains/examples/chat-with-llm/package.json index 68892d964..458710e54 100644 --- a/JS/edgechains/examples/chat-with-llm/package.json +++ b/JS/edgechains/examples/chat-with-llm/package.json @@ -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" + } } - diff --git a/JS/edgechains/examples/chat-with-llm/src/index.ts b/JS/edgechains/examples/chat-with-llm/src/index.ts index 997eb2f6b..d17ac79c2 100644 --- a/JS/edgechains/examples/chat-with-llm/src/index.ts +++ b/JS/edgechains/examples/chat-with-llm/src/index.ts @@ -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(); @@ -23,6 +22,4 @@ app.post("/chat", async (c: any) => { return c.json(JSON.parse(response)); }); -server.listen(3000) - - +server.listen(3000); diff --git a/JS/edgechains/examples/chat-with-pdf/src/routes/chat.ts b/JS/edgechains/examples/chat-with-pdf/src/routes/chat.ts index 8812b02b0..ce390f9e2 100644 --- a/JS/edgechains/examples/chat-with-pdf/src/routes/chat.ts +++ b/JS/edgechains/examples/chat-with-pdf/src/routes/chat.ts @@ -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"; diff --git a/JS/edgechains/examples/getWeather-or-time-function-calling/dist/lib/openAIChat.cjs b/JS/edgechains/examples/getWeather-or-time-function-calling/dist/lib/openAIChat.cjs index e2ee571e7..96ccfbd72 100644 --- a/JS/edgechains/examples/getWeather-or-time-function-calling/dist/lib/openAIChat.cjs +++ b/JS/edgechains/examples/getWeather-or-time-function-calling/dist/lib/openAIChat.cjs @@ -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"); diff --git a/JS/edgechains/examples/getWeather-or-time-function-calling/dist/lib/openAIFunction.cjs b/JS/edgechains/examples/getWeather-or-time-function-calling/dist/lib/openAIFunction.cjs index 181ca6cfa..20d4d3232 100644 --- a/JS/edgechains/examples/getWeather-or-time-function-calling/dist/lib/openAIFunction.cjs +++ b/JS/edgechains/examples/getWeather-or-time-function-calling/dist/lib/openAIFunction.cjs @@ -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"); diff --git a/JS/edgechains/examples/getWeather-or-time-function-calling/package.json b/JS/edgechains/examples/getWeather-or-time-function-calling/package.json index 2a5257585..9b47d4d6e 100644 --- a/JS/edgechains/examples/getWeather-or-time-function-calling/package.json +++ b/JS/edgechains/examples/getWeather-or-time-function-calling/package.json @@ -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" + } } diff --git a/JS/edgechains/examples/getWeather-or-time-function-calling/src/index.ts b/JS/edgechains/examples/getWeather-or-time-function-calling/src/index.ts index b4084c7f3..f9168a551 100644 --- a/JS/edgechains/examples/getWeather-or-time-function-calling/src/index.ts +++ b/JS/edgechains/examples/getWeather-or-time-function-calling/src/index.ts @@ -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"; diff --git a/JS/edgechains/examples/language-translater/backend/package.json b/JS/edgechains/examples/language-translater/backend/package.json index a3fdd3a02..e31d14fc2 100644 --- a/JS/edgechains/examples/language-translater/backend/package.json +++ b/JS/edgechains/examples/language-translater/backend/package.json @@ -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" + } } diff --git a/JS/edgechains/examples/summarize-page/package.json b/JS/edgechains/examples/summarize-page/package.json index bf3d551ba..c77c5770c 100644 --- a/JS/edgechains/examples/summarize-page/package.json +++ b/JS/edgechains/examples/summarize-page/package.json @@ -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" + } } diff --git a/JS/edgechains/examples/summarize-page/src/lib/getDataFromUrl.cts b/JS/edgechains/examples/summarize-page/src/lib/getDataFromUrl.cts index 1414e4705..4252ca4d7 100644 --- a/JS/edgechains/examples/summarize-page/src/lib/getDataFromUrl.cts +++ b/JS/edgechains/examples/summarize-page/src/lib/getDataFromUrl.cts @@ -1,5 +1,4 @@ - -const { WebScraper } = require("@arakoodev/edgechains.js/scraper") +const { WebScraper } = require("@arakoodev/edgechains.js/scraper"); const scraper = new WebScraper();