Skip to content

Commit 6eca1c3

Browse files
committed
fix: remove hardcoded gateway URL and tab ID from jimeng.py
Use OPENCLAW_GATEWAY_URL and JIMENG_TAB_ID env vars with sensible defaults. Cloud users without browser relay won't hit stale constants.
1 parent 2ca1bd3 commit 6eca1c3

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

scripts/jimeng.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
from __future__ import annotations
1212

1313
import json
14+
import os
1415
import time
1516
from typing import Any
1617

@@ -19,8 +20,8 @@
1920
from gateway_auth import build_gateway_headers
2021
from logutil import get_logger
2122

22-
GATEWAY_URL = "http://localhost:18789"
23-
JIMENG_TAB_ID = "633824CAA4F7CEFB0C523AFB972A9E08" # 默认即梦 tab
23+
GATEWAY_URL = os.environ.get("OPENCLAW_GATEWAY_URL", "http://localhost:18789")
24+
JIMENG_TAB_ID = os.environ.get("JIMENG_TAB_ID", "") # 需在浏览器 Relay 中 attach 即梦 tab
2425

2526
logger = get_logger(__name__)
2627

0 commit comments

Comments
 (0)