Skip to content

Commit

Permalink
update README to mention gpt-4o
Browse files Browse the repository at this point in the history
  • Loading branch information
hauntsaninja committed May 13, 2024
1 parent bfe00ad commit c0ba74c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ OpenAI's models.

```python
import tiktoken
enc = tiktoken.get_encoding("cl100k_base")
enc = tiktoken.get_encoding("o200k_base")
assert enc.decode(enc.encode("hello world")) == "hello world"

# To get the tokeniser corresponding to a specific model in the OpenAI API:
enc = tiktoken.encoding_for_model("gpt-4")
enc = tiktoken.encoding_for_model("gpt-4o")
```

The open source version of `tiktoken` can be installed from PyPI:
Expand Down

0 comments on commit c0ba74c

Please sign in to comment.