feat: change standalone runtime tag env

This commit is contained in:
Junyan Qin
2025-08-23 22:57:46 +08:00
parent b5e22c6db8
commit 2742144e12
2 changed files with 8 additions and 2 deletions

View File

@@ -12,3 +12,9 @@ def get_platform() -> str:
return 'docker'
return sys.platform
def use_websocket_to_connect_plugin_runtime() -> bool:
"""是否使用 websocket 连接插件运行时"""
STANDALONE_RUNTIME = os.environ.get('STANDALONE_RUNTIME', 'false')
return STANDALONE_RUNTIME == 'true'