mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-16 03:47:49 +01:00
enh: ENABLE_MODEL_LIST_CACHE
This commit is contained in:
@@ -923,6 +923,18 @@ except Exception:
|
||||
pass
|
||||
OPENAI_API_BASE_URL = "https://api.openai.com/v1"
|
||||
|
||||
|
||||
####################################
|
||||
# MODEL_LIST
|
||||
####################################
|
||||
|
||||
ENABLE_MODEL_LIST_CACHE = PersistentConfig(
|
||||
"ENABLE_MODEL_LIST_CACHE",
|
||||
"models.cache",
|
||||
os.environ.get("ENABLE_MODEL_LIST_CACHE", "False").lower() == "true",
|
||||
)
|
||||
|
||||
|
||||
####################################
|
||||
# TOOL_SERVERS
|
||||
####################################
|
||||
|
||||
Reference in New Issue
Block a user