Skip to content

Commit 1ce5258

Browse files
authored
Fix typos (#18)
1 parent b47c9ba commit 1ce5258

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Prompt functions
44

5-
The `template` decorator takes a function as an argument whose docstring is a Jinja template, and return a `Template` object:
5+
The `template` decorator takes a function as an argument whose docstring is a Jinja template, and returns a `Template` object:
66

77
```python
88
from prompts import template
@@ -21,7 +21,7 @@ def few_shots(instructions, examples, question):
2121
A: """
2222
```
2323

24-
Caling the `Template` object renders the Jinja template:
24+
Calling the `Template` object renders the Jinja template:
2525

2626
```python
2727
instructions = "Please answer the following question following the examples" examples = [

docs/reference/special_tokens.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Handle special tokens
22

3-
Tokens that indicate the beginnning of a sequence, an end of sequence, that
3+
Tokens that indicate the beginning of a sequence, an end of sequence, that
44
delineate user and assistant turns in a conversation, etc. are model-specific.
55
This means that one needs to write a new prompt each time they use a new model,
66
only replacing these special tokens. This is error-prone and leads to duplicated
@@ -9,7 +9,7 @@ work.
99

1010
## Beginning and end of sequences
1111

12-
`prompts` provides special variables in its templates that allows user to use special tokens in their prompts in a model-agnotic way:
12+
`prompts` provides special variables in its templates that allows user to use special tokens in their prompts in a model-agnostic way:
1313

1414
```python
1515
import prompts
@@ -49,4 +49,4 @@ def simple_prompt(favorite: str):
4949
"""
5050
```
5151

52-
Chat templates are so idiosyncractic, however, that we recommend using the `Chat` class to format according to chat templates.
52+
Chat templates are so idiosyncratic, however, that we recommend using the `Chat` class to format according to chat templates.

0 commit comments

Comments
 (0)