Skip to content

Commit

Permalink
Fix OpenAI model instantiation in examples (#601)
Browse files Browse the repository at this point in the history
  • Loading branch information
7flash authored Feb 1, 2024
1 parent c2b0f4f commit b5ab675
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/reference/choices.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ In some cases we know the output is to be chosen between different options. We c
```python
import outlines.models as models

complete = models.text_completion.openai("text-davinci-002")
complete = models.openai("gpt-3.5-turbo")
answer = complete(
"Pick the odd word out: skirt, dress, pen, jacket",
is_in=["skirt", "dress", "pen", "jacket"]
Expand Down
2 changes: 1 addition & 1 deletion docs/reference/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ By default, language models stop generating tokens after and <EOS> token was gen
```python
import outlines.models as models

complete = models.text_completion.openai("text-davinci-002")
complete = models.openai("gpt-3.5-turbo")
expert = complete("Name an expert in quantum gravity.", stop_at=["\n", "."])
```
2 changes: 1 addition & 1 deletion docs/reference/types.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ We can ask completions to be restricted to valid integers or floating-point numb
```python
import outlines.models as models

complete = models.text_completion.openai("text-davinci-002")
complete = models.openai("gpt-3.5-turbo")
answer = complete(
"When I was 6 my sister was half my age. Now I’m 70 how old is my sister?",
type="int"
Expand Down

0 comments on commit b5ab675

Please sign in to comment.