an autonomous AI agent
OPENAI_API_KEY = "<your open ai api key>"
GOOGLE_MAPS_API_KEY = "<google maps api key>"
To install requirements: pip install -r requirements.txt
To run the app: python3 main.py
POST request to /query
with the following body:
{
"address" : "2000 Central Dr Boulder, CO",
"dietaryRestrictions" : "peanut allergy"
}
Adjust as desired in config.py
- CHAT_MODEL
- OpenAI model used.
- MAX_NUMBER_OF_RESTAURANTS
- Maximum number of restaurants to retrieve from Google maps search.
- The more restaurants, the longer the user wait time.
- RESTAURANT_SEARCH_RADIUS
- The radius for the Google map search. In meters.