feat: direct api settings backend

This commit is contained in:
Timothy Jaeryang Baek committed 2025-02-11 22:29:45 -08:00
1 parent 24cbc469cc
commit 3891161173
5 files changed
+147 -10

No files matched your search

+11
View File
@@ -683,6 +683,17 @@ Path(UPLOAD_DIR).mkdir(parents=True, exist_ok=True)
CACHE_DIR = f"{DATA_DIR}/cache"
Path(CACHE_DIR).mkdir(parents=True, exist_ok=True)
####################################
# DIRECT API
####################################
ENABLE_DIRECT_API = PersistentConfig(
"ENABLE_DIRECT_API",
"direct.enable",
os.environ.get("ENABLE_DIRECT_API", "True").lower() == "true",
)
####################################
# OLLAMA_BASE_URL
####################################