File tree Expand file tree Collapse file tree 2 files changed +12
-3
lines changed
veadk/tools/builtin_tools Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Original file line number Diff line number Diff 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"
Original file line number Diff line number Diff 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" }:
You can’t perform that action at this time.
0 commit comments