mirror of
https://github.com/open-webui/pipelines
synced 2025-05-10 23:50:45 +00:00
25 lines
587 B
Python
25 lines
587 B
Python
import os
|
|
import logging
|
|
####################################
|
|
# Load .env file
|
|
####################################
|
|
|
|
try:
|
|
from dotenv import load_dotenv, find_dotenv
|
|
|
|
load_dotenv(find_dotenv("./.env"))
|
|
except ImportError:
|
|
print("dotenv not installed, skipping...")
|
|
|
|
# Define log levels dictionary
|
|
LOG_LEVELS = {
|
|
'DEBUG': logging.DEBUG,
|
|
'INFO': logging.INFO,
|
|
'WARNING': logging.WARNING,
|
|
'ERROR': logging.ERROR,
|
|
'CRITICAL': logging.CRITICAL
|
|
}
|
|
|
|
API_KEY = os.getenv("PIPELINES_API_KEY", "0p3n-w3bu!")
|
|
PIPELINES_DIR = os.getenv("PIPELINES_DIR", "./pipelines")
|