core_title_adoption.start() peut lever une exception ; elle est maintenant attrapée et loggée en warning au lieu de crasher le serveur au boot.
19 lines
703 B
Python
19 lines
703 B
Python
"""Hermes Web UI -- API modules.
|
|
|
|
Patched entry point (see services/hermes-webui/core_title_adoption.py in the
|
|
NixOS flake): importing the package starts the core title adoption watchdog, so
|
|
the chat sidebar shows the session title already generated by the Hermes core
|
|
instead of the raw first message. Remove this patch once the behaviour exists
|
|
upstream in the hermes-webui input.
|
|
"""
|
|
|
|
import logging as _logging
|
|
|
|
try:
|
|
from . import core_title_adoption as _core_title_adoption
|
|
|
|
_core_title_adoption.start()
|
|
except Exception: # a title helper must never break server startup
|
|
_logging.getLogger(__name__).warning(
|
|
"core title adoption watchdog failed to start", exc_info=True
|
|
) |