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:
|
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:
|
||||||
|
|||||||
Reference in New Issue
Block a user