Skip to content

Commit

Permalink
process.env
Browse files Browse the repository at this point in the history
  • Loading branch information
SmartSchoolAI committed Jun 2, 2024
1 parent c2f9918 commit b2ba3ae
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions express/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@
},
"win": {
"icon": "public/chives.png",
"createDesktopShortcut": true,
"target": [
{
"target": "nsis",
Expand Down
2 changes: 2 additions & 0 deletions express/src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ app.use(cors());
app.use(bodyParser.json());
dotenv.config();

console.log("process.env: ", process.env);

//Initial Database and Folder

function isElectron() {
Expand Down
2 changes: 2 additions & 0 deletions express/src/utils/lancedb.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ import { DataDir } from './const.js';
import dotenv from 'dotenv';
dotenv.config();

console.log("process.env: ", process.env);

const OPENAI_API_KEY = process.env.OPENAI_API_KEY ?? ''


Expand Down
2 changes: 2 additions & 0 deletions express/src/utils/llms.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ import { createEmbeddingsFromList, getWebsiteUrlContext, formatMessage, rephrase
import dotenv from 'dotenv';
dotenv.config();

console.log("process.env: ", process.env);

const OPENAI_BASE_URL = process.env.OPENAI_BASE_URL;
const OPENAI_API_KEY = process.env.OPENAI_API_KEY;

Expand Down
2 changes: 2 additions & 0 deletions express/src/utils/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

dotenv.config();

console.log("process.env: ", process.env);

import { ChatBookDbPool } from './db.js'

const secretKey = process.env.JWT_TOKEN_SECRET_KEY || "ChatBookAI";
Expand Down

0 comments on commit b2ba3ae

Please sign in to comment.