Skip to content

Commit 271368e

Browse files
committed
fix: fix hosts of execute_skills and run_code
1 parent 8b34d18 commit 271368e

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

veadk/tools/builtin_tools/execute_skills.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def execute_skills(
9090

9191
cloud_provider = (os.getenv("CLOUD_PROVIDER") or "").lower()
9292
if cloud_provider == "byteplus":
93-
sld = "byteplusapi"
93+
sld = "bytepluses"
9494
default_region = "ap-southeast-1"
9595
else:
9696
sld = "volces"

veadk/tools/builtin_tools/run_code.py

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,18 @@ def run_code(
4545
service = getenv(
4646
"AGENTKIT_TOOL_SERVICE_CODE", "agentkit"
4747
) # temporary service for code run tool
48-
region = getenv("AGENTKIT_TOOL_REGION", "cn-beijing")
48+
49+
cloud_provider = (os.getenv("CLOUD_PROVIDER") or "").lower()
50+
if cloud_provider == "byteplus":
51+
sld = "bytepluses"
52+
default_region = "ap-southeast-1"
53+
else:
54+
sld = "volces"
55+
default_region = "cn-beijing"
56+
57+
region = getenv("AGENTKIT_TOOL_REGION", default_region)
4958
host = getenv(
50-
"AGENTKIT_TOOL_HOST", service + "." + region + ".volces.com"
59+
"AGENTKIT_TOOL_HOST", service + "." + region + f".{sld}.com"
5160
) # temporary host for code run tool
5261
scheme = getenv("AGENTKIT_TOOL_SCHEME", "https", allow_false_values=True).lower()
5362
if scheme not in {"http", "https"}:

0 commit comments

Comments
 (0)