mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-09-02 17:45:31 +00:00
chore(core): Remove python-dotenv
This commit is contained in:
@@ -15,7 +15,6 @@ dependencies = [
|
|||||||
"aiohttp==3.8.4",
|
"aiohttp==3.8.4",
|
||||||
"chardet==5.1.0",
|
"chardet==5.1.0",
|
||||||
"importlib-resources==5.12.0",
|
"importlib-resources==5.12.0",
|
||||||
"python-dotenv==1.0.0",
|
|
||||||
"cachetools",
|
"cachetools",
|
||||||
"pydantic>=2.6.0",
|
"pydantic>=2.6.0",
|
||||||
# For AWEL type checking
|
# For AWEL type checking
|
||||||
|
@@ -4,18 +4,12 @@ import os
|
|||||||
import random
|
import random
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
from dotenv import load_dotenv
|
|
||||||
|
|
||||||
if "pytest" in sys.argv or "pytest" in sys.modules or os.getenv("CI"):
|
if "pytest" in sys.argv or "pytest" in sys.modules or os.getenv("CI"):
|
||||||
print("Setting random seed to 42")
|
print("Setting random seed to 42")
|
||||||
random.seed(42)
|
random.seed(42)
|
||||||
|
|
||||||
# Load the users .env file into environment variables
|
|
||||||
# load_dotenv(verbose=True, override=True)
|
|
||||||
ROOT_PATH = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
|
ROOT_PATH = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
|
||||||
# load_dotenv(os.path.join(ROOT_PATH, ".plugin_env"))
|
|
||||||
|
|
||||||
del load_dotenv
|
|
||||||
|
|
||||||
TAG_KEY_KNOWLEDGE_FACTORY_DOMAIN_TYPE = "knowledge_factory_domain_type"
|
TAG_KEY_KNOWLEDGE_FACTORY_DOMAIN_TYPE = "knowledge_factory_domain_type"
|
||||||
TAG_KEY_KNOWLEDGE_CHAT_DOMAIN_TYPE = "knowledge_chat_domain_type"
|
TAG_KEY_KNOWLEDGE_CHAT_DOMAIN_TYPE = "knowledge_chat_domain_type"
|
||||||
|
Reference in New Issue
Block a user