feat: enhance agent skills sandbox configuration and availability
- Updated .env.example to set default sandbox mode to 'docker' and added timeout and docker image variables. - Modified docker-compose files to include a sandbox service for building and pulling the sandbox image. - Adjusted frontend API to reflect sandbox availability for skills, ensuring UI elements are conditionally displayed based on sandbox status. - Implemented backend logic to disable skills when the sandbox is not enabled, improving error handling and user experience.
This commit is contained in:
+4
-4
@@ -177,14 +177,14 @@ COS_ENABLE_OLD_DOMAIN=true
|
||||
# MAX_FILE_SIZE_MB=50
|
||||
|
||||
# ========== Agent Skills Sandbox 配置 ==========
|
||||
# Sandbox 模式: docker(推荐), local, disabled(默认)
|
||||
# WEKNORA_SANDBOX_MODE=disabled
|
||||
# Sandbox 模式: docker(默认), local, disabled
|
||||
WEKNORA_SANDBOX_MODE=docker
|
||||
|
||||
# 脚本执行超时时间(秒),默认60
|
||||
# WEKNORA_SANDBOX_TIMEOUT=60
|
||||
WEKNORA_SANDBOX_TIMEOUT=60
|
||||
|
||||
# 自定义 Sandbox Docker 镜像
|
||||
# WEKNORA_SANDBOX_DOCKER_IMAGE=wechatopenai/weknora-sandbox:latest
|
||||
WEKNORA_SANDBOX_DOCKER_IMAGE=wechatopenai/weknora-sandbox:latest
|
||||
|
||||
# APK 镜像源设置(可选)
|
||||
APK_MIRROR_ARG=mirrors.tencent.com
|
||||
|
||||
Reference in New Issue
Block a user