fix: save_config → set_config (correct function name in database.py)
This commit is contained in:
@@ -37,8 +37,8 @@ def startup():
|
||||
if not key:
|
||||
env_key = os.environ.get("OPENAI_API_KEY", "")
|
||||
if env_key:
|
||||
from services.database import save_config
|
||||
save_config("openai_api_key", env_key)
|
||||
from services.database import set_config
|
||||
set_config("openai_api_key", env_key)
|
||||
key = env_key
|
||||
_log.info("[Startup] OPENAI_API_KEY synced from environment to DB config")
|
||||
if key:
|
||||
|
||||
Reference in New Issue
Block a user