GuglielmoTor commited on
Commit
d14d5ec
·
verified ·
1 Parent(s): c64c256

Update insight_and_tasks/agents/follower_agent.py

Browse files
insight_and_tasks/agents/follower_agent.py CHANGED
@@ -365,6 +365,7 @@ class EnhancedFollowerAnalysisAgent:
365
  # or if the LLM object needs to be explicitly passed to PandasAI DataFrame.
366
  # Check if LLM is configured using the proper config.get() method
367
  config = pai.config.get()
 
368
  if not config.get("llm"):
369
  logger.warning("PandasAI LLM not configured. Attempting to configure now.")
370
  # This assumes configure_pandasai is available and sets the LLM config
 
365
  # or if the LLM object needs to be explicitly passed to PandasAI DataFrame.
366
  # Check if LLM is configured using the proper config.get() method
367
  config = pai.config.get()
368
+ logger.info(f"pai_config: {config}, Type of config: {type(config)}")
369
  if not config.get("llm"):
370
  logger.warning("PandasAI LLM not configured. Attempting to configure now.")
371
  # This assumes configure_pandasai is available and sets the LLM config