Wolfram Alpha tool wrapper is a Python tool that provides an extended wrapper for Wolfram Alpha API. It allows you to retrieve plot images and step-by-step solutions for a given query.
- Plot Retrieval: Obtains url of plot images for a given query.
- Step-by-Step Solutions: Get step-by-step solutions for a query.
- Obtain a Wolfram Alpha App ID.
- Set the
WOLFRAM_ALPHA_APPID
environment variable with your App ID. - Set the
SERPAPI_API_KEY
environment variable with your App ID.
To change it in chat.py
.
In case you want to use Docker. To run use docker build .
To change the test.py
file and run using python.
url = "http://172.17.0.2:5000/prompt"
headers = {
'Content-Type': 'application/json',
'API-KEY': 'API-KEY'
}
data = {'prompt': 'Paste prompt here'}
response = requests.post(url, headers=headers, json=data)
print(response.text)