mirror of
https://github.com/open-webui/pipelines
synced 2025-05-12 00:20:48 +00:00
17 lines
374 B
Python
17 lines
374 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...")
|
|
|
|
|
|
MODEL_ID = os.environ.get("MODEL_ID", "plugin-id")
|
|
MODEL_NAME = os.environ.get("MODEL_NAME", "Plugin Model")
|