diff --git a/astrbot/core/computer/computer_client.py b/astrbot/core/computer/computer_client.py index 879f45989..2a4225628 100644 --- a/astrbot/core/computer/computer_client.py +++ b/astrbot/core/computer/computer_client.py @@ -77,10 +77,11 @@ def _discover_bay_credentials(endpoint: str) -> str: cred_endpoint, endpoint, ) + masked_key = f"{api_key[:4]}..." if len(api_key) >= 6 else "redacted" logger.info( "[Computer] Auto-discovered Bay API key from %s (prefix=%s)", cred_path, - api_key[:12] + "..." if len(api_key) > 12 else api_key, + masked_key, ) return api_key except (json.JSONDecodeError, OSError) as exc: diff --git a/requirements.txt b/requirements.txt index 779136e88..6f24cc688 100644 --- a/requirements.txt +++ b/requirements.txt @@ -54,3 +54,4 @@ markitdown-no-magika[docx,xls,xlsx]>=0.1.2 xinference-client tenacity>=9.1.2 shipyard-python-sdk>=0.2.4 +shipyard-neo-sdk @ git+https://github.com/AstrBotDevs/shipyard-neo.git#subdirectory=shipyard-neo-sdk \ No newline at end of file