fix: optimize browser memory

This commit is contained in:
zhayujie
2026-05-28 19:09:26 +08:00
parent b7b8e3679c
commit 136b0b89e8
2 changed files with 27 additions and 1 deletions

View File

@@ -117,6 +117,18 @@ def expand_path(path: str) -> str:
return expanded
def is_cloud_deployment() -> bool:
if os.environ.get("CLOUD_DEPLOYMENT_ID"):
return True
try:
from config import conf
if conf().get("cloud_deployment_id"):
return True
except Exception:
pass
return False
def get_cloud_headers(api_key: str) -> dict:
"""
Build standard headers for LinkAI API requests,