mirror of
https://github.com/open-webui/pipelines
synced 2025-05-10 07:30:47 +00:00
16 lines
377 B
Python
16 lines
377 B
Python
import os
|
|
|
|
####################################
|
|
# Load .env file
|
|
####################################
|
|
|
|
try:
|
|
from dotenv import load_dotenv, find_dotenv
|
|
|
|
load_dotenv(find_dotenv("./.env"))
|
|
except ImportError:
|
|
print("dotenv not installed, skipping...")
|
|
|
|
API_KEY = os.getenv("PIPELINES_API_KEY", "0p3n-w3bu!")
|
|
PIPELINES_DIR = os.getenv("PIPELINES_DIR", "./pipelines")
|