chore: anchor fresh-start history to upstream
This commit is contained in:
@@ -64,12 +64,9 @@ def _run_portal_one_shot(config: dict) -> None:
|
||||
" Sign up: https://portal.nousresearch.com/manage-subscription", None)
|
||||
|
||||
def _on_error(exc: Exception) -> None:
|
||||
from hermes_cli.auth_error_copy import provider_setup_failure_lines
|
||||
print()
|
||||
lead, *rest = provider_setup_failure_lines(exc, retry_command="hermes portal")
|
||||
print_error(f" {lead}")
|
||||
for line in rest:
|
||||
print_info(f" {line}")
|
||||
print_error(f" Nous Portal setup encountered an error: {exc}")
|
||||
print_info(" You can retry later with `hermes portal`.")
|
||||
|
||||
if not _run_nous_flow(config, context="`hermes portal`", cancel_exc=(KeyboardInterrupt, EOFError, SystemExit),
|
||||
cancel_lines=(None, " Setup cancelled.", " You can retry later with `hermes portal`."),
|
||||
@@ -98,11 +95,8 @@ def _run_first_time_quick_setup(config: dict, hermes_home, is_existing: bool):
|
||||
"Sign up: https://portal.nousresearch.com/manage-subscription", None)
|
||||
|
||||
def _on_error(exc: Exception) -> None:
|
||||
from hermes_cli.auth_error_copy import provider_setup_failure_lines
|
||||
lead, *rest = provider_setup_failure_lines(exc, retry_command="hermes model")
|
||||
print_warning(lead)
|
||||
for line in rest:
|
||||
print_info(line)
|
||||
print_warning(f"Nous Portal setup encountered an error: {exc}")
|
||||
print_info("You can try again later with: hermes model")
|
||||
|
||||
_run_nous_flow(config, context="quick setup", cancel_exc=(KeyboardInterrupt, EOFError),
|
||||
cancel_lines=(None, "Nous Portal setup cancelled."), print_error=_on_error)
|
||||
|
||||
Reference in New Issue
Block a user