Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updating packages version in examples #377

Merged
merged 2 commits into from
Jun 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 23 additions & 21 deletions JS/edgechains/examples/chat-with-llm/package.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,25 @@
{
"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.3.1",
"path": "^0.12.7",
"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.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"
},
"devDependencies": {
"@types/node": "^20.12.12"
}
}

4 changes: 2 additions & 2 deletions JS/edgechains/examples/chat-with-pdf/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
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 @@ -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();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
4 changes: 2 additions & 2 deletions JS/edgechains/examples/react-chain/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 0 additions & 1 deletion JS/edgechains/examples/summarize-page/dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
46 changes: 23 additions & 23 deletions JS/edgechains/examples/summarize-page/package.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
{
"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.3.1",
"file-uri-to-path": "^2.0.0",
"path": "^0.12.7",
"sync-rpc": "^1.3.6",
"zod": "^3.23.8"
},
"devDependencies": {
"@types/node": "^20.14.1",
"@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.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"
},
"devDependencies": {
"@types/node": "^20.14.1",
"@types/request": "^2.48.12"
}
}
1 change: 0 additions & 1 deletion JS/edgechains/examples/summarize-page/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,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);
});

Expand Down
Loading