Skip to content

Commit e335011

Browse files
committed
fix: honest signup URL, documented aux-model choice, BASE_URL override, poll nit
1 parent 22298cb commit e335011

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

‎__init__.py‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,15 +138,18 @@ def build_api_kwargs_extras(
138138
name="muse-code",
139139
display_name="Muse Code (subscription)",
140140
description="Muse Spark billed to the local Muse Code monthly login",
141-
signup_url="https://developer.meta.com/ai/",
141+
signup_url="https://github.com/TheStreamCode/hermes-muse-code#login-once",
142142
env_vars=(ENV_VAR,),
143-
base_url="https://api.meta.ai/v1",
143+
base_url=os.getenv("META_BASE_URL", "").strip() or "https://api.meta.ai/v1",
144144
auth_type="api_key",
145145
# Responses API engages Muse prompt caching; same wire as meta-ai.
146146
api_mode="codex_responses",
147147
supports_vision=True,
148148
supports_vision_tool_messages=False,
149149
default_max_tokens=16384,
150+
# default_aux_model intentionally unset (= main model): the bundled
151+
# profile's contributor-tier default would silently opt background
152+
# compression into data training.
150153
fallback_models=("muse-spark-1.3",),
151154
)
152155

‎muse_code_login.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ def poll_token(device_code, interval_seconds, expires_in_seconds):
153153
if error == "slow_down":
154154
slow_downs += 1
155155
interval = max(MIN_POLL_INTERVAL_SECS, interval + SLOW_DOWN_INCREMENT_SECS)
156-
elif error not in ("authorization_pending",):
156+
elif error != "authorization_pending":
157157
raise LoginError(f"login failed: {error}")
158158
remaining = deadline - time.time()
159159
if remaining <= 0:

0 commit comments

Comments
 (0)