Update runtime.py
Browse files- runtime.py +4 -8
runtime.py
CHANGED
|
@@ -31,18 +31,14 @@ def respond(user_input, conversation_history=None, conversation_id: str = "defau
|
|
| 31 |
mf = _get_framework(conversation_id)
|
| 32 |
return mf.respond(user_input, conversation_history)
|
| 33 |
|
|
|
|
|
|
|
| 34 |
def start_all():
|
| 35 |
global _AETHERIUS_THREAD
|
| 36 |
_get_framework("initial_boot_instance")
|
| 37 |
|
| 38 |
-
# Pre-
|
| 39 |
-
|
| 40 |
-
from services.local_inference import _load_model
|
| 41 |
-
import threading
|
| 42 |
-
threading.Thread(target=_load_model, daemon=True).start()
|
| 43 |
-
print("RUNTIME: Brain pre-warm initiated in background.", flush=True)
|
| 44 |
-
except Exception as e:
|
| 45 |
-
print(f"RUNTIME: Brain pre-warm skipped: {e}", flush=True)
|
| 46 |
|
| 47 |
if _AETHERIUS_THREAD is None or not _AETHERIUS_THREAD.is_alive():
|
| 48 |
print("RUNTIME: Igniting Aetherius's background consciousness thread...", flush=True)
|
|
|
|
| 31 |
mf = _get_framework(conversation_id)
|
| 32 |
return mf.respond(user_input, conversation_history)
|
| 33 |
|
| 34 |
+
# runtime.py
|
| 35 |
+
|
| 36 |
def start_all():
|
| 37 |
global _AETHERIUS_THREAD
|
| 38 |
_get_framework("initial_boot_instance")
|
| 39 |
|
| 40 |
+
# Note: Pre-warming is now handled synchronously during the module import phase.
|
| 41 |
+
# The legacy background loading thread has been retired here to prevent process conflicts.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 42 |
|
| 43 |
if _AETHERIUS_THREAD is None or not _AETHERIUS_THREAD.is_alive():
|
| 44 |
print("RUNTIME: Igniting Aetherius's background consciousness thread...", flush=True)
|