Skip to content

Latest commit

 

History

History
14 lines (10 loc) · 1.28 KB

README.md

File metadata and controls

14 lines (10 loc) · 1.28 KB

This web application leverages the OpenAI API (GPT 3.5-Turbo) to create recipes for the user.

Upon arrival, the user is greeted with a welcome and given a short description of how the application works.

Default Page

The user can then enter the name of a food/meal, and an API request will be sent to the GPT assistant.

Prompt engineering is used to direct the assistant to create its response following a list of guidelines. Additionally, it is instructed to return a specified response in case the user's query is not the name of a food (which is parsed later on to return an error message and display it to the user in the result box).

Once the OpenAPI returns its result, the data received is parsed and formatted. If an error occurs, the ouput is specified accordingly.

After entering the name of a food/meal and clicking 'Find Recipe', the user will be presented with the recipe as such:

Part 1 of Recipe Result Part 2 of Recipe Result

The user can then follow the recipe, or enter a new term into the search bar and look for a new recipe.