mirror of
https://github.com/OpenHands/OpenHands.git
synced 2026-03-22 05:37:20 +08:00
APP-443: Fix key generation (#12726)
Co-authored-by: openhands <openhands@all-hands.dev> Co-authored-by: tofarr <tofarr@gmail.com>
This commit is contained in:
@@ -114,10 +114,8 @@ async def reset_settings() -> JSONResponse:
|
||||
|
||||
|
||||
async def store_llm_settings(
|
||||
settings: Settings, settings_store: SettingsStore
|
||||
settings: Settings, existing_settings: Settings
|
||||
) -> Settings:
|
||||
existing_settings = await settings_store.load()
|
||||
|
||||
# Convert to Settings model and merge with existing settings
|
||||
if existing_settings:
|
||||
# Keep existing LLM settings if not provided
|
||||
@@ -156,7 +154,7 @@ async def store_settings(
|
||||
|
||||
# Convert to Settings model and merge with existing settings
|
||||
if existing_settings:
|
||||
settings = await store_llm_settings(settings, settings_store)
|
||||
settings = await store_llm_settings(settings, existing_settings)
|
||||
|
||||
# Keep existing analytics consent if not provided
|
||||
if settings.user_consents_to_analytics is None:
|
||||
|
||||
Reference in New Issue
Block a user