mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-08-31 08:33:36 +00:00
chore(core): Remove python-dotenv
This commit is contained in:
@@ -15,7 +15,6 @@ dependencies = [
|
||||
"aiohttp==3.8.4",
|
||||
"chardet==5.1.0",
|
||||
"importlib-resources==5.12.0",
|
||||
"python-dotenv==1.0.0",
|
||||
"cachetools",
|
||||
"pydantic>=2.6.0",
|
||||
# For AWEL type checking
|
||||
|
@@ -4,18 +4,12 @@ import os
|
||||
import random
|
||||
import sys
|
||||
|
||||
from dotenv import load_dotenv
|
||||
|
||||
if "pytest" in sys.argv or "pytest" in sys.modules or os.getenv("CI"):
|
||||
print("Setting random seed to 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__))))
|
||||
# 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_CHAT_DOMAIN_TYPE = "knowledge_chat_domain_type"
|
||||
|
Reference in New Issue
Block a user