Skip to content

Added example for Legal Simplifier #141

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fixed comments & updated recipegenerator.gpt
  • Loading branch information
techmaharaj committed Feb 29, 2024
commit f0f9f042efe4a85b67165f2a2ffb305e5183c16a
File renamed without changes.
12 changes: 5 additions & 7 deletions examples/recipegenerator/recipegenerator.gpt
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,14 @@ tools: sys.find, sys.read, sys.write, recipegenerator, tool.gpt

Perform the following steps in order:

1. Give me a list of 5 to 10 ingredients from the picture grocery.png located in the current directory and put those extracted ingredients in a file name response.json
2. Analyse the json file response.json in the current directory and give me a list of ingredients listed under "content"
3. Based on these items, suggest me one recipe that is quick to cook and create a new recipe.md file with the recipe
1. Give me a list of 5 to 10 ingredients from the picture grocery.png located in the current directory and put those extracted ingredients into a list.
2. Based on these ingredients list, suggest me one recipe that is quick to cook and create a new recipe.md file with the recipe


---
name: recipegenerator
description: Generate a recipe from an ingredient file
args: file: filename of ingredients
description: Generate a recipe from the list of ingredients
args: ingredients: a list of available ingredients.
tools: sys.read

Read ${file} which is a response.json file
Generate 1 new recipe based on the ingredients read from $(file)
Generate 1 new recipe based on the ingredients list
1 change: 1 addition & 0 deletions examples/recipegenerator/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
Flask==2.0.1
Werkzeug==2.2.2