From 0129255478e48e7cc5cc7624dfdc0a8e16c75a0f Mon Sep 17 00:00:00 2001 From: Rodrigo Agundez Date: Thu, 16 Jan 2025 08:01:26 +0800 Subject: [PATCH] Set default storage provider to local --- backend/open_webui/config.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/backend/open_webui/config.py b/backend/open_webui/config.py index f7d2f46e5..0ce4c4574 100644 --- a/backend/open_webui/config.py +++ b/backend/open_webui/config.py @@ -9,22 +9,22 @@ from urllib.parse import urlparse import chromadb import requests -import yaml -from open_webui.internal.db import Base, get_db +from pydantic import BaseModel +from sqlalchemy import JSON, Column, DateTime, Integer, func + from open_webui.env import ( - OPEN_WEBUI_DIR, DATA_DIR, + DATABASE_URL, ENV, FRONTEND_BUILD_DIR, + OFFLINE_MODE, + OPEN_WEBUI_DIR, WEBUI_AUTH, WEBUI_FAVICON_URL, WEBUI_NAME, log, - DATABASE_URL, - OFFLINE_MODE, ) -from pydantic import BaseModel -from sqlalchemy import JSON, Column, DateTime, Integer, func +from open_webui.internal.db import Base, get_db class EndpointFilter(logging.Filter): @@ -581,7 +581,7 @@ if CUSTOM_NAME: # STORAGE PROVIDER #################################### -STORAGE_PROVIDER = os.environ.get("STORAGE_PROVIDER", "") # defaults to local, s3 +STORAGE_PROVIDER = os.environ.get("STORAGE_PROVIDER", "local") # defaults to local, s3 S3_ACCESS_KEY_ID = os.environ.get("S3_ACCESS_KEY_ID", None) S3_SECRET_ACCESS_KEY = os.environ.get("S3_SECRET_ACCESS_KEY", None)