Skip to content

Commit cef91e2

Browse files
committed
better readme
1 parent ba744d0 commit cef91e2

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -227,21 +227,21 @@ For instance we can start from this decent function:
227227
```python
228228
@gpt_function
229229
def list_movies(actor, n=2) -> list[str]:
230-
"""Return the titles of at most {n} great movies featuring {actor}."""
231-
232-
list_movies("Leonardo DiCaprio")
233-
# ['The Revenant', 'Inception']
230+
"""Return {n} movies featuring {actor}, e.g. "Batman", "Up"..."""
231+
232+
list_movies("Brad Pitt")
233+
# ['Fight Club', 'Once Upon a Time in Hollywood']
234234
```
235235

236-
And now let's ask for a more specific list and a better (more expensive) GPT model:
236+
Now let's ask for a more specific list, with a better (more expensive) GPT model:
237237

238238
```python
239239
list_movies(
240-
"Leonardo DiCaprio",
240+
"Brad Pitt",
241241
gpt_system_prompt="Don't list movies released before 2020.",
242242
gpt_model="gpt-4o-2024-08-06" #gpt-4o knows more than -mini
243243
)
244-
# ['Django Unchained', 'Once Upon a Time in Hollywood']
244+
# ['Bullet Train', 'Babylon']
245245
```
246246

247247
### Asking the GPT for a reasoned answer

0 commit comments

Comments
 (0)