Skip to content

Commit

Permalink
fix: Fix Misplaced Else Statement and Correct If Condition Handling i…
Browse files Browse the repository at this point in the history
…n set_config_with_dict() (#965)

Co-authored-by: luther <[email protected]>
  • Loading branch information
Luther-Sparks and luther authored Feb 8, 2024
1 parent 8dddd26 commit 273c98e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions memgpt/cli/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand All @@ -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.")
Expand Down

0 comments on commit 273c98e

Please sign in to comment.