Skip to content

Commit

Permalink
fix(config): remove unnecessary config
Browse files Browse the repository at this point in the history
  • Loading branch information
ArslanSaleem committed Jan 7, 2025
1 parent 3cb822c commit 4be492d
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions pandasai/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,9 @@ def load_config_from_json(
with open(find_closest("pandasai.json"), "r") as f:
config = json.load(f)

# if config is a dict
if config.get("llm") and not override_config.get("llm"):
options = config.get("llm_options") or {}
config["llm"] = getattr(llm, config["llm"])(**options)
elif not config.get("llm") and not override_config.get("llm"):
if not config.get("llm") and not override_config.get("llm"):
config["llm"] = llm.BambooLLM()

except FileNotFoundError:
# Ignore the error if the file does not exist, will use the default config
pass
Expand Down

0 comments on commit 4be492d

Please sign in to comment.