rdune71 commited on
Commit
5f52f06
·
1 Parent(s): a3e0ade

Implement enhanced UI with proper response display and feedback

Browse files
Files changed (1) hide show
  1. src/services/context_enrichment.py +3 -2
src/services/context_enrichment.py CHANGED
@@ -7,8 +7,9 @@ class ContextEnrichmentService:
7
  """Service for enriching AI context with current data"""
8
 
9
  def __init__(self):
10
- self.openweather_api_key = config.openweather_api_key
11
- self.tavily_api_key = config.tavily_api_key
 
12
 
13
  def get_current_context(self, user_query: str = "") -> Dict[str, Any]:
14
  """Get current context including time, weather, and recent news"""
 
7
  """Service for enriching AI context with current data"""
8
 
9
  def __init__(self):
10
+ # Access config attributes properly
11
+ self.openweather_api_key = getattr(config, 'openweather_api_key', None)
12
+ self.tavily_api_key = getattr(config, 'tavily_api_key', None)
13
 
14
  def get_current_context(self, user_query: str = "") -> Dict[str, Any]:
15
  """Get current context including time, weather, and recent news"""