danielkorat commited on
Commit
bd99edb
·
verified ·
1 Parent(s): 8f75d32

Update my_tools.py

Browse files
Files changed (1) hide show
  1. my_tools.py +1 -1
my_tools.py CHANGED
@@ -24,7 +24,7 @@ def knowledge_and_intelligence_tool(query: str)-> str:
24
  Returns:
25
  A string containing the answer for the query.
26
  """
27
- api_key = os.environ["WOLFRAM_API_KEY"]
28
  formatted_query = parse.quote_plus(query)
29
  url = f"http://api.wolframalpha.com/v2/query?appid={api_key}&input={formatted_query}&output=json&format=plaintext"
30
  for key in WOLFRAM_RESPONSE_KEYS:
 
24
  Returns:
25
  A string containing the answer for the query.
26
  """
27
+ api_key = os.environ["WOLFRAM_ALPHA_APPID"]
28
  formatted_query = parse.quote_plus(query)
29
  url = f"http://api.wolframalpha.com/v2/query?appid={api_key}&input={formatted_query}&output=json&format=plaintext"
30
  for key in WOLFRAM_RESPONSE_KEYS: