mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-04-25 00:51:20 +00:00
change: always run setup on no-config run
there's instructions on how to exit & do it manually, no point in asking
This commit is contained in:
parent
6fdbf2f2d7
commit
bdc9b07c9d
1 changed files with 2 additions and 13 deletions
|
|
@ -1085,9 +1085,6 @@ def cmd_chat(args):
|
||||||
print(
|
print(
|
||||||
"It looks like Hermes isn't configured yet -- no API keys or providers found."
|
"It looks like Hermes isn't configured yet -- no API keys or providers found."
|
||||||
)
|
)
|
||||||
print()
|
|
||||||
print(" Run: hermes setup")
|
|
||||||
print()
|
|
||||||
|
|
||||||
from hermes_cli.setup import (
|
from hermes_cli.setup import (
|
||||||
is_interactive_stdin,
|
is_interactive_stdin,
|
||||||
|
|
@ -1100,16 +1097,8 @@ def cmd_chat(args):
|
||||||
)
|
)
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
try:
|
cmd_setup(args)
|
||||||
reply = input("Run setup now? [Y/n] ").strip().lower()
|
return
|
||||||
except (EOFError, KeyboardInterrupt):
|
|
||||||
reply = "n"
|
|
||||||
if reply in ("", "y", "yes"):
|
|
||||||
cmd_setup(args)
|
|
||||||
return
|
|
||||||
print()
|
|
||||||
print("You can run 'hermes setup' at any time to configure.")
|
|
||||||
sys.exit(1)
|
|
||||||
|
|
||||||
# Start update check in background (runs while other init happens)
|
# Start update check in background (runs while other init happens)
|
||||||
try:
|
try:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue