Spaces:
Sleeping
Sleeping
Upload telegram_bot.py with huggingface_hub
Browse files- telegram_bot.py +3 -3
telegram_bot.py
CHANGED
|
@@ -63,7 +63,7 @@ if not BOT:
|
|
| 63 |
raise SystemExit(1)
|
| 64 |
|
| 65 |
ZEN_URL = "https://opencode.ai/zen/v1/responses"
|
| 66 |
-
MODEL = (os.environ.get("
|
| 67 |
KEY = (os.environ.get("OPENCODE_API_KEY") or "").strip()
|
| 68 |
MODE = (os.environ.get("TELEGRAM_MODE") or "polling").strip().lower()
|
| 69 |
SPACE_PUBLIC_URL = (os.environ.get("SPACE_PUBLIC_URL") or "").strip().rstrip("/")
|
|
@@ -408,8 +408,8 @@ def brain(text, _depth=0):
|
|
| 408 |
if any(k in low for k in ["which model", "what model", "what llm", "which llm",
|
| 409 |
"brian", "brain llm", "what are you running on",
|
| 410 |
"model are u", "model are you"]):
|
| 411 |
-
return ("I run on
|
| 412 |
-
"Same brain on your BAT and here.")
|
| 413 |
# Status questions get the detailed heartbeat reply — never the generic OFF text.
|
| 414 |
if "is my pc on" in low or "is pc on" in low or "pc status" in low:
|
| 415 |
on, d, age = _pc_status()
|
|
|
|
| 63 |
raise SystemExit(1)
|
| 64 |
|
| 65 |
ZEN_URL = "https://opencode.ai/zen/v1/responses"
|
| 66 |
+
MODEL = (os.environ.get("OPENCODE_MODEL") or "muse-spark-1.3-contributor-free").strip()
|
| 67 |
KEY = (os.environ.get("OPENCODE_API_KEY") or "").strip()
|
| 68 |
MODE = (os.environ.get("TELEGRAM_MODE") or "polling").strip().lower()
|
| 69 |
SPACE_PUBLIC_URL = (os.environ.get("SPACE_PUBLIC_URL") or "").strip().rstrip("/")
|
|
|
|
| 408 |
if any(k in low for k in ["which model", "what model", "what llm", "which llm",
|
| 409 |
"brian", "brain llm", "what are you running on",
|
| 410 |
"model are u", "model are you"]):
|
| 411 |
+
return ("I run on Muse Spark, sir — model muse-spark-1.3-contributor-free, "
|
| 412 |
+
"served via OpenCode Zen. Same brain on your BAT and here.")
|
| 413 |
# Status questions get the detailed heartbeat reply — never the generic OFF text.
|
| 414 |
if "is my pc on" in low or "is pc on" in low or "pc status" in low:
|
| 415 |
on, d, age = _pc_status()
|