From 273c98ef37d3cf949c8546493e465e83745333c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E7=BB=B5=E7=A7=8B?= <73636611+Luther-Sparks@users.noreply.github.com> Date: Fri, 9 Feb 2024 04:43:32 +0800 Subject: [PATCH] fix: Fix Misplaced Else Statement and Correct If Condition Handling in set_config_with_dict() (#965) Co-authored-by: luther <272786742@qq.com> --- memgpt/cli/cli.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/memgpt/cli/cli.py b/memgpt/cli/cli.py index cce055e33b..a8352e0d1c 100644 --- a/memgpt/cli/cli.py +++ b/memgpt/cli/cli.py @@ -79,8 +79,8 @@ def set_config_with_dict(new_config: dict) -> bool: modified = True # old_config[k] = new_config[k] setattr(old_config.default_embedding_config, k, new_config[k]) - else: - printd(f"Skipping new config {k}: {v} == {new_config[k]}") + else: + printd(f"Skipping new config {k}: {v} == {new_config[k]}") # update llm config for k, v in vars(old_config.default_llm_config).items(): @@ -90,8 +90,8 @@ def set_config_with_dict(new_config: dict) -> bool: modified = True # old_config[k] = new_config[k] setattr(old_config.default_llm_config, k, new_config[k]) - else: - printd(f"Skipping new config {k}: {v} == {new_config[k]}") + else: + printd(f"Skipping new config {k}: {v} == {new_config[k]}") if modified: printd(f"Saving new config file.")