Skip to content

Commit

Permalink
fix env issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Shyam-Raghuwanshi committed Jun 1, 2024
1 parent f99f458 commit 6592a5d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 10 deletions.
10 changes: 5 additions & 5 deletions JS/edgechains/arakoodev/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,14 @@
"@babel/preset-env": "^7.24.4",
"@hono/node-server": "^1.11.0",
"@supabase/supabase-js": "^2.42.3",
"@types/dotenv": "^8.2.0",
"axios": "^1.7.2",
"axios-retry": "^4.1.0",
"cheerio": "^1.0.0-rc.12",
"cors": "^2.8.5",
"dotenv": "^16.4.5",
"dts-bundle-generator": "^9.3.1",
"esbuild": "^0.20.2",
"eventsource-parser": "^1.1.2",
"faiss-node": "^0.5.1",
"hono": "^4.2.2",
"hono": "3.9",
"jest-environment-jsdom": "^29.7.0",
"node-fetch": "^3.3.2",
"pdf-parse": "^1.1.1",
Expand All @@ -46,9 +44,10 @@
"text-encoding": "^0.7.0",
"ts-node": "^10.9.2",
"typeorm": "^0.3.20",
"vitest": "^1.5.1",
"uninstall": "^0.0.0",
"web-streams-polyfill": "^4.0.0",
"youtube-transcript": "^1.2.1",
"zod": "^3.23.8",
"zod-to-ts": "^1.2.0"
},
"keywords": [],
Expand All @@ -58,6 +57,7 @@
"@babel/preset-typescript": "^7.24.1",
"@types/cors": "^2.8.17",
"@types/jest": "^29.5.12",
"@types/node": "^20.13.0",
"@types/pdf-parse": "^1.1.4",
"jest": "^29.7.0",
"ts-jest": "^29.1.2",
Expand Down
2 changes: 0 additions & 2 deletions JS/edgechains/arakoodev/src/openai/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
import "dotenv/config";

export { OpenAI } from "./lib/endpoints/OpenAiEndpoint.js";
export { Stream } from "./lib/streaming/OpenAiStreaming.js";
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import axios from "axios";
import { config } from "dotenv";
import { printNode, zodToTs } from "zod-to-ts";
import { z } from "zod";
config();
const openAI_url = "https://api.openai.com/v1/chat/completions";

type role = "user" | "assistant" | "system";
Expand Down
2 changes: 1 addition & 1 deletion JS/edgechains/arakoodev/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"compilerOptions": {
"types": ["dotenv/config", "jest", "node"],
"types": ["jest", "node"],
"target": "ES2022",
"module": "NodeNext",
"esModuleInterop": true,
Expand Down

0 comments on commit 6592a5d

Please sign in to comment.