fix: save_config → set_config (correct function name in database.py)

This commit is contained in:
OpenSquared
2026-06-17 15:00:31 +02:00
parent d726cf430e
commit 07c1a74704

View File

@@ -37,8 +37,8 @@ def startup():
if not key: if not key:
env_key = os.environ.get("OPENAI_API_KEY", "") env_key = os.environ.get("OPENAI_API_KEY", "")
if env_key: if env_key:
from services.database import save_config from services.database import set_config
save_config("openai_api_key", env_key) set_config("openai_api_key", env_key)
key = env_key key = env_key
_log.info("[Startup] OPENAI_API_KEY synced from environment to DB config") _log.info("[Startup] OPENAI_API_KEY synced from environment to DB config")
if key: if key: