diff --git a/JS/edgechains/examples/chat-with-llm/package.json b/JS/edgechains/examples/chat-with-llm/package.json index c013005c..df6f40dc 100644 --- a/JS/edgechains/examples/chat-with-llm/package.json +++ b/JS/edgechains/examples/chat-with-llm/package.json @@ -11,8 +11,9 @@ }, "license": "ISC", "dependencies": { - "@arakoodev/edgechains.js": "^0.1.23", - "@arakoodev/jsonnet": "^0.3.1", + "@arakoodev/edgechains.js": "^0.23.6", + "@arakoodev/jsonnet": "^0.23.6", + "file-uri-to-path": "^2.0.0", "path": "^0.12.7", "sync-rpc": "^1.3.6", "zod": "^3.23.8" diff --git a/JS/edgechains/examples/chat-with-pdf/package.json b/JS/edgechains/examples/chat-with-pdf/package.json index 0a208348..e6e45c13 100644 --- a/JS/edgechains/examples/chat-with-pdf/package.json +++ b/JS/edgechains/examples/chat-with-pdf/package.json @@ -13,8 +13,8 @@ "author": "", "license": "ISC", "dependencies": { - "@arakoodev/edgechains.js": "^0.1.23", - "@arakoodev/jsonnet": "^0.3.1", + "@arakoodev/edgechains.js": "^0.23.6", + "@arakoodev/jsonnet": "^0.23.6", "@babel/preset-env": "^7.24.4", "cli-spinner": "^0.2.10", "file-uri-to-path": "^2.0.0", 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 29ef75d7..c164d371 100644 --- a/JS/edgechains/examples/chat-with-pdf/src/routes/chat.ts +++ b/JS/edgechains/examples/chat-with-pdf/src/routes/chat.ts @@ -17,7 +17,7 @@ const getQueryMatch = createClient(path.join(__dirname, "../../lib/getQueryMatch const getEmbeddings = createClient(path.join(__dirname, "../../lib/getEmbeddings.cjs")); // this should run only once for uploding pdf data to supabase then you can continue with the chatbot functionality -// await InsertToSupabase(splitedDocs); +await InsertToSupabase(splitedDocs); export const ChatRouter: any = server.createApp(); 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 a64a461e..46fd03ba 100644 --- a/JS/edgechains/examples/getWeather-or-time-function-calling/package.json +++ b/JS/edgechains/examples/getWeather-or-time-function-calling/package.json @@ -12,16 +12,16 @@ "author": "", "license": "ISC", "dependencies": { - "@arakoodev/edgechains.js": "^0.1.23", - "@arakoodev/jsonnet": "^0.2.1", + "@arakoodev/edgechains.js": "^0.23.6", + "@arakoodev/jsonnet": "^0.23.6", "axios": "^1.7.1", "file-uri-to-path": "^2.0.0", "moment-timezone": "^0.5.45", "openai": "^4.47.1", + "path": "^0.12.7", "sync-rpc": "^1.3.6" }, "devDependencies": { - "@types/node": "^20.14.1", - "path": "^0.12.7" + "@types/node": "^20.14.1" } } diff --git a/JS/edgechains/examples/language-translater/backend/package.json b/JS/edgechains/examples/language-translater/backend/package.json index e31d14fc..7ee727a9 100644 --- a/JS/edgechains/examples/language-translater/backend/package.json +++ b/JS/edgechains/examples/language-translater/backend/package.json @@ -11,9 +11,11 @@ }, "license": "ISC", "dependencies": { - "@arakoodev/edgechains.js": "^0.1.23", - "@arakoodev/jsonnet": "^0.2.1", + "@arakoodev/edgechains.js": "^0.23.6", + "@arakoodev/jsonnet": "^0.23.6", + "file-uri-to-path": "^2.0.0", "hono": "^4.3.7", + "path": "^0.12.7", "sync-rpc": "^1.3.6", "zod": "^3.23.8" }, diff --git a/JS/edgechains/examples/react-chain/package.json b/JS/edgechains/examples/react-chain/package.json index e0d5f345..125150dd 100644 --- a/JS/edgechains/examples/react-chain/package.json +++ b/JS/edgechains/examples/react-chain/package.json @@ -12,8 +12,8 @@ "author": "", "license": "ISC", "dependencies": { - "@arakoodev/edgechains.js": "^0.1.23", - "@arakoodev/jsonnet": "^0.3.1", + "@arakoodev/edgechains.js": "^0.23.6", + "@arakoodev/jsonnet": "^0.23.6", "axios": "^1.7.2", "file-uri-to-path": "^2.0.0", "path": "^0.12.7", diff --git a/JS/edgechains/examples/summarize-page/dist/index.js b/JS/edgechains/examples/summarize-page/dist/index.js index c4055ed4..467414a5 100644 --- a/JS/edgechains/examples/summarize-page/dist/index.js +++ b/JS/edgechains/examples/summarize-page/dist/index.js @@ -16,7 +16,6 @@ app.get("/", async (c) => { jsonnet.javascriptCallback("openAICall", openAICall); jsonnet.javascriptCallback("getPageContent", getPageContent); let response = jsonnet.evaluateFile(path.join(__dirname, "../../jsonnet/main.jsonnet")); - console.log(response); return c.json(response); }); server.listen(3000); diff --git a/JS/edgechains/examples/summarize-page/package.json b/JS/edgechains/examples/summarize-page/package.json index b56185e4..71fef704 100644 --- a/JS/edgechains/examples/summarize-page/package.json +++ b/JS/edgechains/examples/summarize-page/package.json @@ -11,8 +11,8 @@ }, "license": "ISC", "dependencies": { - "@arakoodev/edgechains.js": "^0.1.23", - "@arakoodev/jsonnet": "^0.3.1", + "@arakoodev/edgechains.js": "^0.23.6", + "@arakoodev/jsonnet": "^0.23.6", "file-uri-to-path": "^2.0.0", "path": "^0.12.7", "sync-rpc": "^1.3.6", diff --git a/JS/edgechains/examples/summarize-page/src/index.ts b/JS/edgechains/examples/summarize-page/src/index.ts index baf166f2..6b23db34 100644 --- a/JS/edgechains/examples/summarize-page/src/index.ts +++ b/JS/edgechains/examples/summarize-page/src/index.ts @@ -22,7 +22,6 @@ app.get("/", async (c: any) => { jsonnet.javascriptCallback("openAICall", openAICall); jsonnet.javascriptCallback("getPageContent", getPageContent); let response = jsonnet.evaluateFile(path.join(__dirname, "../../jsonnet/main.jsonnet")); - console.log(response) return c.json(response); });