Skip to content

Commit a752bf7

Browse files
authored
Merge pull request #374 from BhAem/fix/skill_tool
fix: remove get_env when getting ak/sk
2 parents 99feef9 + e0974ea commit a752bf7

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)