Spaces:
Running
Running
Update insight_and_tasks/agents/mentions_agent.py
Browse files
insight_and_tasks/agents/mentions_agent.py
CHANGED
@@ -287,7 +287,7 @@ class EnhancedMentionsAnalysisAgent:
|
|
287 |
Provide a concise summary of brand perception based on this data.
|
288 |
"""
|
289 |
def chat_operation():
|
290 |
-
if not pai.config.llm:
|
291 |
logger.warning("PandasAI LLM not configured for mentions agent. Attempting to configure.")
|
292 |
from utils.pandasai_setup import configure_pandasai
|
293 |
configure_pandasai(self.api_key, self.model_name)
|
|
|
287 |
Provide a concise summary of brand perception based on this data.
|
288 |
"""
|
289 |
def chat_operation():
|
290 |
+
if not pai.config.get("llm"):
|
291 |
logger.warning("PandasAI LLM not configured for mentions agent. Attempting to configure.")
|
292 |
from utils.pandasai_setup import configure_pandasai
|
293 |
configure_pandasai(self.api_key, self.model_name)
|