Raiff1982 commited on
Commit
e4411b1
·
verified ·
1 Parent(s): 17090a1

Update src/components/ai_core.py

Browse files
Files changed (1) hide show
  1. src/components/ai_core.py +5 -1
src/components/ai_core.py CHANGED
@@ -277,10 +277,14 @@ class AICore:
277
  return f"Codette: {prompt}"
278
 
279
  try:
 
 
 
 
280
  # Calculate current consciousness state
281
  consciousness = self._calculate_consciousness_state()
282
  active_perspectives = self._get_active_perspectives()
283
- m_score = consciousness["m_score"]
284
 
285
  # Calculate dynamic temperature with smoother scaling
286
  base_temp = 0.7 # Base temperature for balanced responses
 
277
  return f"Codette: {prompt}"
278
 
279
  try:
280
+ # Ensure quantum_state is properly initialized before use
281
+ if not isinstance(self.quantum_state, dict):
282
+ self.quantum_state = {"coherence": 0.5}
283
+
284
  # Calculate current consciousness state
285
  consciousness = self._calculate_consciousness_state()
286
  active_perspectives = self._get_active_perspectives()
287
+ m_score = consciousness.get("m_score", 0.5)
288
 
289
  # Calculate dynamic temperature with smoother scaling
290
  base_temp = 0.7 # Base temperature for balanced responses