Update main.py
Browse files
main.py
CHANGED
|
@@ -30,6 +30,7 @@ with open(os.path.join(hermes_dir, ".env"), "w") as f:
|
|
| 30 |
f.write(f"TELEGRAM_ALLOWED_USERS={TG_USER_STR}\n")
|
| 31 |
|
| 32 |
# --- Write config.yaml (NVIDIA Primary) ---
|
|
|
|
| 33 |
with open(os.path.join(hermes_dir, "config.yaml"), "w") as f:
|
| 34 |
f.write("""model:
|
| 35 |
provider: nvidia
|
|
@@ -77,6 +78,8 @@ print("✅ Config and Skills created successfully.")
|
|
| 77 |
print("[2] Launching Hermes Telegram Gateway in Foreground...")
|
| 78 |
hermes_bin = shutil.which("hermes") or "/usr/local/bin/hermes"
|
| 79 |
|
|
|
|
|
|
|
| 80 |
sys.stdout.flush()
|
| 81 |
subprocess.run(
|
| 82 |
[hermes_bin, "gateway", "run"],
|
|
|
|
| 30 |
f.write(f"TELEGRAM_ALLOWED_USERS={TG_USER_STR}\n")
|
| 31 |
|
| 32 |
# --- Write config.yaml (NVIDIA Primary) ---
|
| 33 |
+
# Added basic custom proxy configuration structure if hermes reads it
|
| 34 |
with open(os.path.join(hermes_dir, "config.yaml"), "w") as f:
|
| 35 |
f.write("""model:
|
| 36 |
provider: nvidia
|
|
|
|
| 78 |
print("[2] Launching Hermes Telegram Gateway in Foreground...")
|
| 79 |
hermes_bin = shutil.which("hermes") or "/usr/local/bin/hermes"
|
| 80 |
|
| 81 |
+
# Kuch frameworks automatic system proxies setup detect karte hain.
|
| 82 |
+
# Agar 1-2 retries me connect ho jata hai to standard loop sahi chalega.
|
| 83 |
sys.stdout.flush()
|
| 84 |
subprocess.run(
|
| 85 |
[hermes_bin, "gateway", "run"],
|