Skip to content

Commit e0974ea

Browse files
committed
fix: remove get_env when getting ak/sk
1 parent 99feef9 commit e0974ea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

veadk/tools/builtin_tools/execute_skills.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@ def execute_skills(
106106
f"Execute skills in session_id={session_id}, tool_id={tool_id}, host={host}, service={service}, region={region}, timeout={timeout}"
107107
)
108108

109-
ak = getenv("VOLCENGINE_ACCESS_KEY")
110-
sk = getenv("VOLCENGINE_SECRET_KEY")
109+
ak = tool_context.state.get("VOLCENGINE_ACCESS_KEY")
110+
sk = tool_context.state.get("VOLCENGINE_SECRET_KEY")
111111
header = {}
112112

113113
if not (ak and sk):

0 commit comments

Comments
 (0)