mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-19 15:18:03 +00:00
Address email pairing review feedback
This commit is contained in:
parent
2455e1801b
commit
5dae502b86
6 changed files with 71 additions and 35 deletions
|
|
@ -62,6 +62,7 @@ from hermes_cli.config import (
|
|||
format_docker_update_message,
|
||||
recommended_update_command_for_method,
|
||||
redact_key,
|
||||
write_platform_config_field,
|
||||
)
|
||||
from hermes_cli.memory_providers import (
|
||||
MemoryProvider,
|
||||
|
|
@ -5006,17 +5007,7 @@ def _messaging_platform_payload(
|
|||
|
||||
|
||||
def _write_platform_enabled(platform_id: str, enabled: bool) -> None:
|
||||
config = load_config()
|
||||
platforms = config.setdefault("platforms", {})
|
||||
if not isinstance(platforms, dict):
|
||||
platforms = {}
|
||||
config["platforms"] = platforms
|
||||
platform_config = platforms.setdefault(platform_id, {})
|
||||
if not isinstance(platform_config, dict):
|
||||
platform_config = {}
|
||||
platforms[platform_id] = platform_config
|
||||
platform_config["enabled"] = enabled
|
||||
save_config(config)
|
||||
write_platform_config_field(platform_id, "enabled", enabled)
|
||||
|
||||
|
||||
_TELEGRAM_ONBOARDING_DEFAULT_URL = "https://setup.hermes-agent.nousresearch.com"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue