Skip to content

Commit 6016f10

Browse files
fix(tools): fix vesearch.py return env name (#283)
* Update vesearch.py * Update vesearch.py (#284)
1 parent e88320d commit 6016f10

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

veadk/tools/builtin_tools/vesearch.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ def vesearch(query: str) -> str:
3030
bot_id = str(getenv("TOOL_VESEARCH_ENDPOINT"))
3131

3232
if api_key == "":
33-
return "Invoke `vesearch` failed. Please set VESEARCH_API_KEY as your environment variable."
33+
return "Invoke `vesearch` failed. Please set TOOL_VESEARCH_API_KEY as your environment variable."
3434
if bot_id == "":
35-
return "Invoke `vesearch` failed. Please set VESEARCH_BOT_ID as your environment variable."
35+
return "Invoke `vesearch` failed. Please set TOOL_VESEARCH_ENDPOINT as your environment variable."
3636

3737
URL = "https://open.feedcoopapi.com/agent_api/agent/chat/completion"
3838
headers = {"Authorization": f"Bearer {api_key}", "Content-Type": "application/json"}

0 commit comments

Comments
 (0)