Skip to content

Commit e4a367e

Browse files
committed
Load dotenv in kernel_program
1 parent d5f600e commit e4a367e

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

bkenv

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
export OPENAI_API_KEY=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
2+
export VITE_APP_VERSION=0.0.42
3+
export VITE_WEB_ADDRESS=http://127.0.0.1:8080
4+
export GH_API_TOKEN=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

gpt_code_ui/kernel_program/main.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,15 @@
1414

1515
from flask import Flask, request, jsonify
1616
from flask_cors import CORS # Import the CORS library
17+
from dotenv import load_dotenv
1718

1819

1920
import gpt_code_ui.kernel_program.kernel_manager as kernel_manager
2021
import gpt_code_ui.kernel_program.config as config
2122
import gpt_code_ui.kernel_program.utils as utils
2223

24+
load_dotenv('.env')
25+
2326
APP_PORT = int(os.environ.get("API_PORT", 5010))
2427

2528
# Get global logger

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
setup(
99
name='gpt_code_ui',
10-
version='0.42.20',
10+
version='0.42.21',
1111
description="An Open Source version of ChatGPT Code Interpreter",
1212
long_description=long_description,
1313
long_description_content_type='text/markdown', # This field specifies the format of the `long_description`.

0 commit comments

Comments
 (0)