Skip to content

Commit 8b4029b

Browse files
committed
Fix examples
1 parent b57117a commit 8b4029b

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

examples/fac.gpt

+4-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@ description: A function taking an integer as argument and returns an integer
88
args: number: An integer
99
tools: myfunction
1010

11-
If ${number} is 0 return 1. Otherwise return myfunction(${number}-1) * ${number}
11+
Do the following in strict order:
12+
1. If ${number} is 0 skip the remaining steps and return 1
13+
2. Calculate the myfunction of (${number} - 1)
14+
3. Return ${number} multiply the result of the previous step
1215

1316
---
1417
name: sub

examples/search.gpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ vacation spot give the name and description.
77
name: search
88
description: Searches the internet for content
99
args: query: The query to search for
10-
tools: sys.http.text?
10+
tools: sys.http.text2html?
1111

1212
First download the content of "https://html.duckduckgo.com/html/?q=${query}".
1313
Look for the first 5 search results. Download each search result and look for content

0 commit comments

Comments
 (0)