mirror of
				https://github.com/open-webui/pipelines
				synced 2025-06-26 18:15:58 +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")
 |